Problem with ZCMD
#1

Код:
#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?
Reply
#2

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


Forum Jump:


Users browsing this thread: 1 Guest(s)