SA-MP Forums Archive
Help Me For adminScript - 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: Help Me For adminScript (/showthread.php?tid=349019)



Help Me For adminScript - [PXS]jeton007[(DKZ)] - 07.06.2012

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;
}



Re: Help Me For adminScript - mahdi499 - 07.06.2012

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