SA-MP Forums Archive
Errors Pls Help - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Errors Pls Help (/showthread.php?tid=366637)



Errors Pls Help - xOOLEn_Fresh - 07.08.2012

Hey Guys!
I have a Problem this are my Errors:

Zeile (1211) : error 029: invalid expression, assumed zero
Zeile (1211) : warning 215: expression has no effect
Zeile (1211) : error 001: expected token: ";", but found "if"
Zeile (121 : error 029: invalid expression, assumed zero

an there they are:

forward hacktimer(playerid);
public hacktimer(playerid)
{
if(IsPlayerInRangeOfPoint(playerid,5.0,2496.3586,2 778.2888,10.8203))
{
MoveObject(tor[0],2498.19995117,2772.89990234,19.50000000,5);
SendClientMessage(playerid,BLAU,"Du hast erfolgreich das Mafiator gehackt");
DisablePlayerCheckpoint(playerid);
}
else
{
SendClientMessage(playerid,ROT,"Da du nicht im Checkpoint geblieben bist wurde der hack abgebrochen");
DisablePlayerCheckpoint(playerid);
}
else if(IsPlayerInRangeOfPoint(playerid,5.0,2334.3945,2 439.9675,6.0607))
{
{
MoveObject(tor[1],2335.10009766,2443.50000000,7.09999990-10,5);
SendClientMessage(playerid,BLAU,"Du hast erfolgreich das Polizeitor gehackt");
DisablePlayerCheckpoint(playerid);
}
else
{
SendClientMessage(playerid,ROT,"Da du nicht im Checkpoint geblieben bist wurde der hack abgebrochen");
DisablePlayerCheckpoint(playerid);
}
}
return 1;
}

Sorry for my english i normaly speak German^^
Greetings from Austria


Re: Errors Pls Help - Cxnnor - 07.08.2012

Use pawn tags, and also please mark where the error-ed line is.


Re: Errors Pls Help - xOOLEn_Fresh - 07.08.2012

ok
thx