Error 001 - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Error 001 (
/showthread.php?tid=215005)
Error 001 -
sapsap - 22.01.2011
Hey guys, I try to compile my script I always get these errors:
Quote:
pd mavs + dach.pwn(71) : error 001: expected token: "*then", but found "-identifier-"
|
Here are the lines:
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/pdhoch", cmdtext, true, 10) == 0)
{
if IsPlayerInRangeOfPoint(playerid, 2, 242.2857,66.3882,1003.6406)
SetPlayerPos(playerid, 1571.8101,-1675.6870,28.3955);
else SendClientMessage (playerid, 0xFF0000, "Du bist nicht im PD!");
return 1;
}
return 0;
}
Any ideas

?
Thanks in advance!
Re: Error 001 -
veyron - 22.01.2011
if
(IsPlayerInRangeOfPoint(playerid, 2, 242.2857,66.3882,1003.6406)
)
SetPlayerPos(playerid, 1571.8101,-1675.6870,28.3955);
you forgot ( and ) after if
Re: Error 001 -
sapsap - 22.01.2011
Omg thanks, thank you sooo damn much