03.01.2013, 19:31
All Fixed And Now I Know Im A Pain i added A New Command /setaname And Now I Get This Error
On Line 87542 There Is
And The Whole Command Is
Thanks Alot
Код:
C:\Users\Minecraft\Desktop\BBRPAname.pwn(87542) : error 017: undefined symbol "SYNTAX_MESSAGE" C:\Users\Minecraft\Desktop\BBRPAname.pwn(87542) : warning 215: expression has no effect C:\Users\Minecraft\Desktop\BBRPAname.pwn(87542) : error 001: expected token: ";", but found ")" C:\Users\Minecraft\Desktop\BBRPAname.pwn(87542) : error 029: invalid expression, assumed zero C:\Users\Minecraft\Desktop\BBRPAname.pwn(87542) : fatal error 107: too many error messages on one line
Код:
return SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE"/setadminname [playerid] [adminname]");
Код:
CMD:setaname(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] >= 5) { new userID, playerNameString[MAX_PLAYER_NAME]; if(sscanf(params, "us[24]", userID, playerNameString)) { return SendClientMessage(playerid, COLOR_GREY, SYNTAX_MESSAGE"/setadminname [playerid] [adminname]"); } else { if(!IsPlayerConnected(userID)) return SendClientMessage(playerid, COLOR_GREY, "The specified player ID is either not connected or has not authenticated."); if(PlayerInfo[userID][pAdmin] >= 5) { if(PlayerInfo[userID][pAdmin] > PlayerInfo[playerid][pAdmin]) { return SendClientMessage(playerid, COLOR_GREY, "You can't change the admin name of a higher level administrator."); } else { new messageString[128]; format(messageString, sizeof(messageString), "You have changed %s's admin name to %s.", PlayerInfo[userID][pAdminName], playerNameString); SendClientMessage(playerid, COLOR_WHITE, messageString); format(messageString, sizeof(messageString), "%s has changed your admin name to %s.", PlayerInfo[playerid][pAdminName], playerNameString); SendClientMessage(userID, COLOR_WHITE, messageString); format(PlayerInfo[userID][pAdminName], MAX_PLAYER_NAME, "%s", playerNameString); if(PlayerInfo[userID][pAdminDuty] >= 1) SetPlayerName(userID, playerNameString); return 1; } } else { return SendClientMessage(playerid, COLOR_GREY, "You can't change a non-admin's admin name."); } } } return 1; }