Moze li mi netko pomoci da se rjesim ovih errora i po mogucnosti warninga?
ovo mi izbaci kada ga compile:
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(10094) : error 036: empty statement
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(10095) : warning 217: loose indentation
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(10102) : warning 217: loose indentation
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(10113) : warning 215: expression has no effect
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(10113) : warning 215: expression has no effect
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(10113) : error 001: expected token: ";", but found ")"
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(10113) : error 029: invalid expression, assumed zero
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(10113) : warning 215: expression has no effect
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(10114) : warning 217: loose indentation
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(15464) : error 017: undefined symbol "license_pu"
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(15468) : error 017: undefined symbol "license_pu2"
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(15472) : error 017: undefined symbol "license_pu3"
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(15476) : error 017: undefined symbol "license_pu4"
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(15480) : error 017: undefined symbol "license_pu5"
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(28043) : warning 219: local variable "idcar" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
a evo i djelovi skripte:
PlayerPlaySound(playerid, 1057, X,Y,Z);
}
else if(IsPlayerInRangeOfPoint(playerid, 2, 1524.1573,-1674.2922,13.5469));
{
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_YELLOW, "SMS: Mozete naci glavna mjesta na /gps dok ste u autu, Za vise pozicija kupite gps u ducanu 24/7, Sender: MOLE (555)");
}
return 1;
}
else if(IsPlayerInRangeOfPoint(playerid,5,300.5705,-134.0464,1004.0625))
{
return 1;
}
else
{"Moras cekati %d sekundi prije nego mozes poceti opet trenirati",PlayerInfo[playerid][pAmmuTrainTime]);
SendClientMessage(playerid, COLOR_GREY, string);
return 1;
}
if ( pickupid == license_pu )
{
GameTextForPlayer(playerid, "~y~You can get a ~r~Driving license ~n~~w~Type /buydriving to get a license ~n~~r~(Costs: 1 000 $)", 5000, 3);
}
if ( pickupid == license_pu2 )
{
GameTextForPlayer(playerid, "~y~You can get a ~r~Flying license ~n~~w~Type /buyflying to get a license ~n~~r~(Costs: 10 000 $)", 5000, 3);
}
if ( pickupid == license_pu3 )
{
GameTextForPlayer(playerid, "~y~You can get a ~r~Sailing license ~n~~w~Type /buysailing to get a license ~n~~r~(Costs: 7 000 $)", 5000, 3);
}
if ( pickupid == license_pu4 )
{
GameTextForPlayer(playerid, "~y~You can get a ~r~Gun license ~n~~w~Type /buygunlic to get a license ~n~~r~(Costs: 20 000 $)", 5000, 3);
}
if ( pickupid == license_pu5 )
{
if(!engineOn[GetPlayerVehicleID(playerid)])
{
new idcar
GetPlayerVehicleID(playerid);
Koliko erora imas?
dodaj na vrhu scripte, odma ispod includa .. "#pragma tabsize 0" ....
da umanjis ove warninge, pa daj compile i onda mi daj cijelu funkciju sto ima u sebi ovo:
return 1;
}
else
{"Moras cekati %d sekundi prije nego mozes poceti opet trenirati",PlayerInfo[playerid][pAmmuTrainTime]);
SendClientMessage(playerid, COLOR_GREY, string);
return 1;
}
Stavio sam to sto si mi reko i evo sta mi compile izbaci(msm to se rjesilo al sta sa ovih 8 errora)
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(10095) : error 036: empty statement
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(10096) : warning 217: loose indentation
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(10103) : warning 217: loose indentation
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(10114) : warning 215: expression has no effect
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(10114) : warning 215: expression has no effect
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(10114) : error 001: expected token: ";", but found ")"
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(10114) : error 029: invalid expression, assumed zero
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(10114) : warning 215: expression has no effect
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(10115) : warning 217: loose indentation
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(15465) : error 017: undefined symbol "license_pu"
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(15469) : error 017: undefined symbol "license_pu2"
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(15473) : error 017: undefined symbol "license_pu3"
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(15477) : error 017: undefined symbol "license_pu4"
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(15481) : error 017: undefined symbol "license_pu5"
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(28044) : warning 219: local variable "idcar" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
8 Errors.
Daj mi liniju 10114
evo:
{"Moras cekati %d sekundi prije nego mozes poceti opet trenirati",PlayerInfo[playerid][pAmmuTrainTime];)
new license_pu
new license_pu2
new license_pu3
new license_pu4
new license_pu5
TO stavi ko ostalih newova na vrhu skripte.
Ne lupaj kido..
Treba ovako biti, zavisi iz kojeg si moda uzeo
#define license_pu IDPICKUPA i sve tako redom koliko imaš tih licensa
To sto vi govorite uspio sam sam rjesit, al ovo mi je ostalo...
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(10095) : error 036: empty statement
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(10114) : warning 215: expression has no effect
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(10114) : warning 215: expression has no effect
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(10114) : error 029: invalid expression, assumed zero
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(10115) : warning 217: loose indentation
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(15465) : warning 217: loose indentation
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(28044) : warning 219: local variable "idcar" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
Citat: Vegas. poslato Maj 17, 2012, 10:13:03 PRE PODNE
Ne lupaj kido..
Treba ovako biti, zavisi iz kojeg si moda uzeo
#define license_pu IDPICKUPA i sve tako redom koliko imaš tih licensa
http://forum.sa-mp.com/showthread.php?t=276222
@Josipe, daj linije 10114 i 10115
Jesil rijesio ovo ?
{"Moras cekati %d sekundi prije nego mozes poceti opet trenirati",PlayerInfo[playerid][pAmmuTrainTime];)
ako jesi daj mi liniju 10114
evo
{"Moras cekati %d sekundi prije nego mozes poceti opet trenirati",PlayerInfo[playerid][pAmmuTrainTime];)
SendClientMessage(playerid, COLOR_GREY, string);
Daj cijelu tu funkciju/komandu.
Na to mislis?
{"Moras cekati %d sekundi prije nego mozes poceti opet trenirati",PlayerInfo[playerid][pAmmuTrainTime];)
SendClientMessage(playerid, COLOR_GREY, string);
return 1;
}
ili mislis sve ovo:
else if(IsPlayerInRangeOfPoint(playerid,5,300.5705,-134.0464,1004.0625))
{
if(PlayerInfo[playerid][pAmmuTrainTime] == 0)
{
new listitems[] = "1\tSelect Your Item\n2\tNormal Pistol\n3\tSilenced Pistol\n4\tDesert Deagle\n5\tPump Shotgun\n6\tSawn off Shotgun\n7\tCombat Shotgun\n8\tTEC9 / MAC 10\n9\tSMG MP5\n10\tAK-47\n11\tM4"
ShowPlayerDialog(playerid,0,2,"Koje oruzje zelite trenirati?",listitems,"Treniraj","Prekini");
return 1;
}
else
{"Moras cekati %d sekundi prije nego mozes poceti opet trenirati",PlayerInfo[playerid][pAmmuTrainTime];)
SendClientMessage(playerid, COLOR_GREY, string);
return 1;
}
}
DisablePlayerCheckpoint(playerid);
return 1;
}
else if(IsPlayerInRangeOfPoint(playerid,5,300.5705,-134.0464,1004.0625))
{
if(PlayerInfo[playerid][pAmmuTrainTime] == 0)
{
new listitems[] = "1\tSelect Your Item\n2\tNormal Pistol\n3\tSilenced Pistol\n4\tDesert Deagle\n5\tPump Shotgun\n6\tSawn off Shotgun\n7\tCombat Shotgun\n8\tTEC9 / MAC 10\n9\tSMG MP5\n10\tAK-47\n11\tM4"
ShowPlayerDialog(playerid,0,2,"Koje oruzje zelite trenirati?",listitems,"Treniraj","Prekini");
return 1;
}
else
{
format(string,sizeof(string),"Moras cekati %d sekundi prije nego mozes poceti opet trenirati",PlayerInfo[playerid][pAmmuTrainTime];)
SendClientMessage(playerid, COLOR_GREY, string);
return 1;
}
}
DisablePlayerCheckpoint(playerid);
return 1;
}
Eto pokusaj to.
sada mi izbaci 3 errora
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(10095) : error 036: empty statement
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(10105) : warning 217: loose indentation
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(10115) : error 001: expected token: ",", but found ";"
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(10115) : error 029: invalid expression, assumed zero
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(10116) : warning 217: loose indentation
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(15465) : warning 217: loose indentation
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(28044) : warning 219: local variable "idcar" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Errors.
else if(IsPlayerInRangeOfPoint(playerid,5,300.5705,-134.0464,1004.0625))
{
if(PlayerInfo[playerid][pAmmuTrainTime] == 0)
{
new listitems[] = "1\tSelect Your Item\n2\tNormal Pistol\n3\tSilenced Pistol\n4\tDesert Deagle\n5\tPump Shotgun\n6\tSawn off Shotgun\n7\tCombat Shotgun\n8\tTEC9 / MAC 10\n9\tSMG MP5\n10\tAK-47\n11\tM4"
ShowPlayerDialog(playerid,0,2,"Koje oruzje zelite trenirati?",listitems,"Treniraj","Prekini");
return 1;
}
else
{
format(string,sizeof(string),"Moras cekati %d sekundi prije nego mozes poceti opet trenirati",PlayerInfo[playerid][pAmmuTrainTime]);
SendClientMessage(playerid, COLOR_GREY, string);
return 1;
}
}
Ovo?
e sada imam samo jedan error :D
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(10095) : error 036: empty statement
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(15465) : warning 217: loose indentation
D:\Documents and Settings\Hrky\My Documents\Ravens_Roleplay-0.3d\Raven's Roleplay 0.3d\gamemodes\larp.pwn(28044) : warning 219: local variable "idcar" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Daj liniju 10095 i par linija iznad i ispod nje.
evo od 10090-10100
DisablePlayerCheckpoint(playerid);
new TutLicenses[] = "Usli ste u checkpoint, to znaci da ste kod Centra za dozvole.\nTo je mjesto gdje mozete kupiti dozvole.\nNeke dozvole vam mogu dati samo administratori, a putovnicu mozete dobiti u vjecnici\n\n\nSada da nastavimo sa tutorialom, pritisnite nastavi ili prekini.";
ShowPlayerDialog(playerid,267,DIALOG_STYLE_MSGBOX,"------------The Licenses Center ------------",TutLicenses,"Nastavi","Prekini");
PlayerPlaySound(playerid, 1057, X,Y,Z);
}
else if(IsPlayerInRangeOfPoint(playerid, 2, 1524.1573,-1674.2922,13.5469));
{
DisablePlayerCheckpoint(playerid);
new TutEnd[] = "Usli ste u checkpoint, To znaci da ste u: Pershing Square Plaza.\nThe Pershing Square Plaza je glavno mjesto u Los Santosu.\nTu su barovi, ducani 24/7 te ilegalni poslovi.\nIlegalne poslove mozete naci tako da kupite gps u ducano 24/7(gps se moze koristiti samo u autu)\n\n\nSada da nastavimo sa tutorialom, pritisnite nastavi.";
ShowPlayerDialog(playerid,268,DIALOG_STYLE_MSGBOX,"------------Kraj Tutoriala------------",TutEnd,"Nastavi","Nastavi");
RingTone[playerid] = 20;
DisablePlayerCheckpoint(playerid);
new TutLicenses[] = "Usli ste u checkpoint, to znaci da ste kod Centra za dozvole.\nTo je mjesto gdje mozete kupiti dozvole.\nNeke dozvole vam mogu dati samo administratori, a putovnicu mozete dobiti u vjecnici\n\n\nSada da nastavimo sa tutorialom, pritisnite nastavi ili prekini.";
ShowPlayerDialog(playerid,267,DIALOG_STYLE_MSGBOX,"------------The Licenses Center ------------",TutLicenses,"Nastavi","Prekini");
PlayerPlaySound(playerid, 1057, X,Y,Z);
}
else if(IsPlayerInRangeOfPoint(playerid, 2, 1524.1573,-1674.2922,13.5469))
{
DisablePlayerCheckpoint(playerid);
new TutEnd[] = "Usli ste u checkpoint, To znaci da ste u: Pershing Square Plaza.\nThe Pershing Square Plaza je glavno mjesto u Los Santosu.\nTu su barovi, ducani 24/7 te ilegalni poslovi.\nIlegalne poslove mozete naci tako da kupite gps u ducano 24/7(gps se moze koristiti samo u autu)\n\n\nSada da nastavimo sa tutorialom, pritisnite nastavi.";
ShowPlayerDialog(playerid,268,DIALOG_STYLE_MSGBOX,"------------Kraj Tutoriala------------",TutEnd,"Nastavi","Nastavi");
RingTone[playerid] = 20;
Nema vise errora ima 3 warninga...
hvala.. :D