cmd - 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: cmd (
/showthread.php?tid=623616)
cmd -
Rassh - 02.12.2016
Код:
CMD:startpaint(playerid)
{
SetPlayerHealth(playerid, 50);
SendClientMessage(playerid, COLOR_RED, "Follow the checkpoints to continue painting.");
SendClientMessage(playerid, COLOR_RED, "You now have started painting.");
SetPlayerCheckpoint(playerid, 206.6469, -238.1338, 1.5781, 3.0);
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 3.0, 195.8659, -237.8371, 1.5781))
{
SendClientMessage(playerid,COLOR_RED,"basic test");
}
}
C:\Users\Astro\Desktop\Server1\gamemodes\hi.pwn(17 5) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Re: cmd -
RyderX - 02.12.2016
Try this:
PHP код:
CMD:startpaint(playerid)
{
SetPlayerHealth(playerid, 50);
SendClientMessage(playerid, COLOR_RED, "Follow the checkpoints to continue painting.");
SendClientMessage(playerid, COLOR_RED, "You now have started painting.");
SetPlayerCheckpoint(playerid, 206.6469, -238.1338, 1.5781, 3.0);
if(IsPlayerInRangeOfPoint(playerid, 3.0, 195.8659, -237.8371, 1.5781))
{
SendClientMessage(playerid,COLOR_RED,"basic test");
}
return 1;
}