SA-MP Forums Archive
Problem with ZCMD - 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: Problem with ZCMD (/showthread.php?tid=178164)



Problem with ZCMD - PixeledNinja - 20.09.2010

Код:
#include <zcmd>





public OnPlayerCommandText(playerid, cmdtext[])
{
        COMMAND:nos(playerid, params[])
	{
	    new currentveh;
	    currentveh = GetPlayerVehicleID(playerid);
	    AddVehicleComponent(currentveh, 1010);
		return 1;
	}
	return 0;
}
It gives me

Код:
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\gamemodes\RCRP.pwn(211) : error 029: invalid expression, assumed zero
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\gamemodes\RCRP.pwn(211) : error 017: undefined symbol "cmd_nos"
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\gamemodes\RCRP.pwn(211) : error 029: invalid expression, assumed zero
C:\Program Files\Rockstar Games\GTA San Andreas\SAMP\gamemodes\RCRP.pwn(211) : fatal error 107: too many error messages on one line
What is wrong?


Re: Problem with ZCMD - Fj0rtizFredde - 20.09.2010

Pate the command at the bottom of your script outside any callback