Error array must be indexed
#1

Hello everybody,
i don't know how to fix this problem i have see that human[MAX_PLAYER] but it's not working

there is the code :

PHP код:
CMD:humanclass(playeridparams[])
{
    if (
human == 2// line 53
    
{
        return 
1;
    }
    else
    {
        
SendClientMessage(playeridCOULEUR_ROUGE"Tu n'est pas un humain.");
    }
    return 
1;

new :
PHP код:
new zombie[1], human[2]; 
error :
Код:
C:\Users\mickael\Desktop\Zombie Serveur Test\filterscripts\Zombie&HumanSurvivalScript.pwn(53) : error 033: array must be indexed (variable "human")
thanks for helping me.
Reply


Messages In This Thread
Error array must be indexed - by Eymeric69 - 21.05.2016, 12:19
Re: Error array must be indexed - by SyS - 21.05.2016, 12:21
Re: Error array must be indexed - by Eymeric69 - 21.05.2016, 12:24
Re: Error array must be indexed - by Konstantinos - 21.05.2016, 12:33
Re: Error array must be indexed - by SyS - 21.05.2016, 13:17
Re: Error array must be indexed - by Darrenr - 21.05.2016, 14:54

Forum Jump:


Users browsing this thread: 1 Guest(s)