29.01.2013, 07:51
man these are the errors im getting
and this is my command
please fix it
Код:
C:\Users\AyushSekhari\Desktop\RevolutionX sa-mp server\gamemodes\RGXTDM.pwn(31068) : warning 219: local variable "i" shadows a variable at a preceding level C:\Users\AyushSekhari\Desktop\RevolutionX sa-mp server\gamemodes\RGXTDM.pwn(31068) : error 017: undefined symbol "YSI_gSplayer" C:\Users\AyushSekhari\Desktop\RevolutionX sa-mp server\gamemodes\RGXTDM.pwn(31068) : error 017: undefined symbol "YSI_gAplayer" C:\Users\AyushSekhari\Desktop\RevolutionX sa-mp server\gamemodes\RGXTDM.pwn(31068) : warning 215: expression has no effect C:\Users\AyushSekhari\Desktop\RevolutionX sa-mp server\gamemodes\RGXTDM.pwn(31068) : error 001: expected token: ";", but found "]" C:\Users\AyushSekhari\Desktop\RevolutionX sa-mp server\gamemodes\RGXTDM.pwn(31068) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Код:
CMD:admins(playerid,params[]) { new i; new Count = 0; new string[100], n[MAX_PLAYER_NAME]; SendClientMessage(playerid, 0x00FF00FF, "__________|Admins|__________"); foreach(player, i) { if(PlayerInfo[i][Level] > 0) { GetPlayerName(i,n,sizeof(n)); format(string,sizeof(string),"Level %d: %s (ID: %d) - %s", PlayerInfo[i][Level], n, i, GetRankFromLevel(i)); SendClientMessage(playerid, 0xFF0000FF, string); Count++; } } if(Count == 0) { SendClientMessage(playerid, 0xFF0000FF, "There Are No Administrators Online."); } SendClientMessage(playerid, 0x00FF00FF, "____________________________"); return 1; } stock GetRankFromLevel(playerid) { new Rank[40]; switch(PlayerInfo[playerid][Level]) { case 0: { Rank = "Regular Player"; } case 1: { Rank = "Trial Administrator"; } case 2: { Rank = "Junior Moderator"; } case 3: { Rank = "Moderator"; } case 4: { Rank = "Head Moderator"; } case 5: { Rank = "Junior Administrator"; } case 6: { Rank = "Administrator"; } case 7: { Rank = "Senior Administrator"; } case 8: { Rank = "Head Administrator"; } case 9: { Rank = "Developer"; } case 10: { Rank = "Head Developer"; } } return Rank; }