SA-MP Forums Archive
Need Help ASAP - 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: Need Help ASAP (/showthread.php?tid=470603)



Need Help ASAP - IPlayGames000 - 19.10.2013

Hi, when I do this coding

Код:
CMD:help(playerid, params[])
{
	SCM(playerid, COLOR_YELLOW, "This is a test command");
	return 0;
}

CMD:help2(playerid, params[])
{
	SCMTA(COLOR_YELLOW, "This is a test command");
	return 0;
}
I get this runtime error:
Код:
Script[gamemodes/TestingScript.amx]: Run time error 20: "Invalid index parameter (bad entry point)"
And when I type it in in game, it says the SendClientMessage but with a "Server:Error Unknown Command"


Re: Need Help ASAP - HardRock - 19.10.2013

PHP код:
CMD:help(playeridparams[])
{
    
SCM(playeridCOLOR_YELLOW"This is a test command");
    return 
1;

return 0; = return 1;