Having Error 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)
+--- Thread: Having Error with ZCMD (
/showthread.php?tid=614865)
Having Error with ZCMD -
Immortal99 - 14.08.2016
Here is my code:
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
CMD:commands(playerid, cmdtext[]) ( Line 71 )
{
SendClientMessage(playerid, COLOR_YELLOW "Elite Gaming Server Commands");
return 1;
}
return 0;
}
Here is the Error:
PHP код:
C:\Users\xavie\PmG Script\gamemodes\Scratch.pwn(71) : error 029: invalid expression, assumed zero
C:\Users\xavie\PmG Script\gamemodes\Scratch.pwn(71) : error 017: undefined symbol "cmd_commands"
C:\Users\xavie\PmG Script\gamemodes\Scratch.pwn(71) : error 029: invalid expression, assumed zero
C:\Users\xavie\PmG Script\gamemodes\Scratch.pwn(71) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
I see nothing wrong "I'm a newbie scripter"
Re: Having Error with ZCMD -
SickAttack - 14.08.2016
Put it out of the callback. Delete OnPlayerCommandText.
Re: Having Error with ZCMD -
Immortal99 - 14.08.2016
Thanks
It worked + rep