11.05.2014, 04:27
ok so im trying to set up a rank system based on a players level, im trying to use the y_ini include system to do this.
Unfortunately i keep getting this as an error mesage.
I do not claim to be a scripting whiz. All the codes work for my Login/Register system and i have all the necessary definitions n such, i just dont know. Also dont mind anything past Level 0, i was messing with some other ideas.
Any help would be appreciated thanks.
Код:
public OnPlayerLogin(playerid) { new playername[12]; new string[64]; { if (pInfo(playerid)[pAdmin] == 0); { format(string,sizeof string,"Player %s has joined the server.",playername); SendClientMessageToAll(0xFFFFFFAA,string); } else if(pInfo(playerid)[pAdmin] == 1); { format(string,sizeof string,"Applicant %s has joined the server.",playername); SendClientMessageToAll(0xFFFFFFAA,string); } else if(IsPlayerAdmin(playerid) == 2); { format(string,sizeof string,"Cadet %s has joined the server.",playername); SendClientMessageToAll(0xFFFFFFAA,string); } else if(IsPlayerAdmin(playerid) == 3); { format(string,sizeof string,"Admin %s has joined the server.",playername); SendClientMessageToAll(0xFFFFFFAA,string); } else if(IsPlayerAdmin(playerid) == 4); { format(string,sizeof string,"Server Tech %s has joined the server.",playername); SendClientMessageToAll(0xFFFFFFAA,string); } else if(IsPlayerAdmin(playerid) == 5); { format(string,sizeof string,"Owner %s has joined the server.",playername); SendClientMessageToAll(0xFFFFFFAA,string); } } }
Quote:
C:\Users\Deshon\Desktop\My Servers\Server 0.3z\gamemodes\Revival-Copy.pwn(1230) : error 012: invalid function call, not a valid address C:\Users\Deshon\Desktop\My Servers\Server 0.3z\gamemodes\Revival-Copy.pwn(1230) : warning 215: expression has no effect C:\Users\Deshon\Desktop\My Servers\Server 0.3z\gamemodes\Revival-Copy.pwn(1230) : error 001: expected token: ";", but found ")" C:\Users\Deshon\Desktop\My Servers\Server 0.3z\gamemodes\Revival-Copy.pwn(1230) : error 029: invalid expression, assumed zero C:\Users\Deshon\Desktop\My Servers\Server 0.3z\gamemodes\Revival-Copy.pwn(1230) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
Any help would be appreciated thanks.