Help Me For adminScript
#1

Hello Body im creating a admin script and im getting some errors help me fix this! here are the errors:
Quote:

C:\Documents and Settings\Computers\Desktop\mos fsih\Server2\gamemodes\test1.pwn(173) : error 017: undefined symbol "PInfo"
C:\Documents and Settings\Computers\Desktop\mos fsih\Server2\gamemodes\test1.pwn(173) : warning 215: expression has no effect
C:\Documents and Settings\Computers\Desktop\mos fsih\Server2\gamemodes\test1.pwn(173) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Computers\Desktop\mos fsih\Server2\gamemodes\test1.pwn(173) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Computers\Desktop\mos fsih\Server2\gamemodes\test1.pwn(173) : fatal error 107: too many error messages on one line

And here is the code for it:
Код:
public OnPlayerDisconnect(playerid, reason)
{
    new n[MAX_PLAYER_NAME], file[256];
    GetPlayerName(playerid,n,sizeof(n));
    format(file,sizeof(file),"AdminScript/Users/%s.txt",n);
    PInfo[playerid][Logged] = 0;
             if(dini_Exists(file))
             {
                 dini_IntSet(file,"Logged",0);
                 return 1;
             }
	return 1;
}
Reply
#2

Just the P in Pinfo make uncaps it so
pInfo[playerid][Logged] = 0;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)