Command does nothing? - 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: Command does nothing? (
/showthread.php?tid=425141)
Command does nothing? -
BigGroter - 24.03.2013
pawn Код:
CMD:exit(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 3.0,-17.8986,1493.3297,994.3759))
{
SetPlayerPos(playerid, -282.8178,-2175.1794,28.7377);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid,0);
}
else
{
SendClientMessage(playerid, 0xC4C4C4FFF,"test");
}
return 1;
}
NOTHING happens, what did I mess up? I'm tired atm and I'm sure it's something simple.
Re: Command does nothing? -
mastermax7777 - 24.03.2013
0xC4C4C4FFF lol new color? try -1
try debugging more
exit is not a reserved keyword ? why is it highlighted in blue then
Re: Command does nothing? -
reckst4r - 24.03.2013
You need to loop through all players, or you could make a normal checkpoint.
Re: Command does nothing? -
mastermax7777 - 24.03.2013
Quote:
Originally Posted by reckst4r
You need to loop through all players, or you could make a normal checkpoint.
|
No. just no..
Re: Command does nothing? -
BigGroter - 24.03.2013
Why would I need to loop through all the players?
btw, changing the command from "exit" to something else fixed the program, but since when can you not use exit as a command?
Re: Command does nothing? -
Scenario - 24.03.2013
Quote:
Originally Posted by Eminem 2ka9
Who cares, it's fixed now shut up.
|
That's quite uncalled for. If you don't want to help fix a problem, don't post!
@OP: I don't believe you'll ever need to use the "exit" function (more information can be found
here). Therefore, you can add this after including all of the includes you need.
Then you should be able to make "exit" the command you need.