SA-MP Forums Archive
[Help]Error in Ranks :) - 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]Error in Ranks :) (/showthread.php?tid=550945)



[Help]Error in Ranks :) - astanalol - 15.12.2014

Hello Every One im Today Making The Ranks For Admins But Have Errors
Quote:

D:\ffff\gamemodes\fast.pwn(675) : error 017: undefined symbol "pRank"
D:\ffff\gamemodes\fast.pwn(675) : error 017: undefined symbol "Admin"
D:\ffff\gamemodes\fast.pwn(675) : error 029: invalid expression, assumed zero
D:\ffff\gamemodes\fast.pwn(675) : fatal error 107: too many error messages on one line

this Line (675)
its in OnPlayerSpawn
Quote:

if(PlayerInfo[playerid][pRank] == Trial Admin)
{
//im Making it new
}




Re: [Help]Error in Ranks :) - pcp - 15.12.2014

Show us your playerinfo enum.You put it in the file, didn't you?


Re: [Help]Error in Ranks :) - astanalol - 15.12.2014

Quote:

if(PlayerInfo[playerid][pRank] == 0)
{
//this for rank
}

i made this
im use y_ini but i dont make any things in y_ini for admins


Re: [Help]Error in Ranks :) - astanalol - 15.12.2014

Help Please
+Rep


Re: [Help]Error in Ranks :) - MohanedZzZ - 16.12.2014

You forget the enums.
pawn Код:
enum pInfo
{
    pRank,
    Admin
}
new PlayerInfo[MAX_PLAYERS][pInfo];



Re: [Help]Error in Ranks :) - astanalol - 16.12.2014

after i add the pRank and pAdmin not Fixing it
Quote:

D:\ffff\gamemodes\fast.pwn(675) : error 017: undefined symbol "Trial"
D:\ffff\gamemodes\fast.pwn(675) : error 017: undefined symbol "Admin"
D:\ffff\gamemodes\fast.pwn(675) : error 029: invalid expression, assumed zero
D:\ffff\gamemodes\fast.pwn(675) : fatal error 107: too many error messages on one line

Quote:

if(PlayerInfo[playerid][pRank] == Trial Admin)
{
//New
}

cant Space in Trial Admin Or Be Trial_Admin
Why Error


Re: [Help]Error in Ranks :) - astanalol - 17.12.2014

bumb


Re: [Help]Error in Ranks :) - LiamM - 17.12.2014

Are you declaring 'Trial Admin' as a variable? For Example.

pawn Код:
new Trial_Admin;
or
pawn Код:
new TrialAdmin;