Having Problem in Zcmd
#1

Quote:

D:\Server\gamemodes\gs.pwn(2273) : error 017: undefined symbol "PlayerInfo"
D:\Server\gamemodes\gs.pwn(2273) : warning 215: expression has no effect
D:\Server\gamemodes\gs.pwn(2273) : error 001: expected token: ";", but found "]"
D:\Server\gamemodes\gs.pwn(2273) : error 029: invalid expression, assumed zero
D:\Server\gamemodes\gs.pwn(2273) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

Problem in gamemode
2273 Line
Quote:

if(PlayerInfo[playerid][pAdmin] >= 5)

Reply
#2

pawn Код:
enum pInfo
{
    pAdmin
}

new
    PlayerInfo[ MAX_PLAYERS ][ pInfo ];
pawn Код:
if(pInfo[playerid][pAdmin] >= 5)
Код:
[Fu]This forum requires that you wait 120 seconds between posts. Please try again in 50 seconds.[Fu]
Reply
#3

You did not put the variable PlayerInfo..

Try with this code :

Код:
enum pData
{
pAdmin
}

new PlayerInfo[MAX_PLAYERS][pData];
Reply
#4

thank you
Reply
#5

use
pawn Код:
enum pInfo
{
     pAdmin
}
new PlayerInfo[MAX_PLAYERS][pInfo];

//example

CMD:blabla(playerid, params[])
{
     if(PlayerInfo[playerid][pAdmin] >= 6)
     {
     //your code
     }
     return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)