28.01.2013, 05:56
Hey guys, I've added a new /Staff command, here it is:
And I'm getting these errors:
Please help! thanks
Код:
CMD:staff(playerid, params[]) { new count = 0, string[256]; SendClientMessage(playerid, 0xFF0000FF,"Current online helpers:"); for(new i = 0; i < MAX_PLAYERS; i ++) { if(IsPlayerConnected(i)) { if(pInfo[i][Adminlevel] == 1) { format(string, sizeof(string),"Admin Rank 1:[%d] %s", i, PlayerName(i)); SendClientMessage(playerid, 0xFF0000FF, string); count++; } if(pInfo[i][Adminlevel] == 2) { format(string, sizeof(string),"Admin Rank 2:[%d] %s", i, PlayerName(i)); SendClientMessage(playerid, 0xFF0000FF, string); count++; } if(pInfo[i][Adminlevel] == 3) { format(string, sizeof(string),"Admin Rank 3:[%d] %s", i, PlayerName(i)); SendClientMessage(playerid, 0xFF0000FF, string); count++; } if(pInfo[i][Adminlevel] == 4) { format(string, sizeof(string),"Admin Rank 4:[%d] %s", i, PlayerName(i)); SendClientMessage(playerid, 0xFF0000FF, string); count++; } if(pInfo[i][Adminlevel] == 5) { format(string, sizeof(string),"Senior Admin:[%d] %s", i, PlayerName(i)); SendClientMessage(playerid, 0xFF0000FF, string); count++; } if(pInfo[i][Adminlevel] == 6) { format(string, sizeof(string),"Head Admin:[%d] %s", i, PlayerName(i)); SendClientMessage(playerid, 0xFF0000FF, string); count++; } } } if(count == 0) { SendClientMessage(playerid, 0xFF0000FF,"No vips are online right now!"); } return 1; }
Код:
C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\CNRSER~1\GAMEMO~1\Testing.pwn(1107) : error 017: undefined symbol "PlayerName" C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\CNRSER~1\GAMEMO~1\Testing.pwn(1113) : error 017: undefined symbol "PlayerName" C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\CNRSER~1\GAMEMO~1\Testing.pwn(1119) : error 017: undefined symbol "PlayerName" C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\CNRSER~1\GAMEMO~1\Testing.pwn(1125) : error 017: undefined symbol "PlayerName" C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\CNRSER~1\GAMEMO~1\Testing.pwn(1131) : error 017: undefined symbol "PlayerName" C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\CNRSER~1\GAMEMO~1\Testing.pwn(1137) : error 017: undefined symbol "PlayerName" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Errors.