SA-MP Forums Archive
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(playeridcmdtext[])
{
    
CMD:commands(playeridcmdtext[])      ( Line 71 )
    {
        
SendClientMessage(playeridCOLOR_YELLOW "Elite Gaming Server Commands");
        return 
1;
    }
    return 
0;

Here is the Error:

PHP код:
C:\Users\xavie\PmG Script\gamemodes\Scratch.pwn(71) : error 029invalid expressionassumed zero
C
:\Users\xavie\PmG Script\gamemodes\Scratch.pwn(71) : error 017undefined symbol "cmd_commands"
C:\Users\xavie\PmG Script\gamemodes\Scratch.pwn(71) : error 029invalid expressionassumed zero
C
:\Users\xavie\PmG Script\gamemodes\Scratch.pwn(71) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB 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