02.07.2014, 20:35
Hi,
I have funny error and i cant understand it. Maybe you could help me out. Take a look:
Errors
I have funny error and i cant understand it. Maybe you could help me out. Take a look:
Код:
CMD:adminduty(playerid, params[]) { if(IsPlayerConnected(playerid)) { if(gPlayerLogged[playerid] == 0) { SendClientMessage(playerid, COLOR_WHITE, " Logi sisse ennem !"); return 1; } if(PlayerData[playerid][AdminLevel] < 1) return SendUnathorizedMessage(playerid); { if(AdminDuty[playerid] == 0) { AdminDuty[playerid] = 1; SetPlayerArmour(playerid, 999); SetPlayerHealth(playerid, 999); SetPlayerColor(playerid,COLOR_ORANGE); //GetPlayerName(playerid, sendername, sizeof(sendername)); //format(string, sizeof(string), "AdminHoiatus: [ID:%d]%s lьlitas AOD sisse.", playerid, sendername); //ABroadCast(COLOR_YELLOW,string,1); SendClientMessage(playerid, COLOR_WHITE, "Sa lьlitasid AOD sisse."); } else if(AdminDuty[playerid] == 1) { AdminDuty[playerid] = 0; SetPlayerArmour(playerid, 0); SetPlayerHealth(playerid, 100); SetPlayerColor(playerid,TEAM_HIT_COLOR); GetPlayerName(playerid, sendername, sizeof(sendername)); //format(string, sizeof(string), "AdminHoiatus: [ID:%d]%s lьlitab AOD vдlja.", playerid, sendername); //ABroadCast(COLOR_YELLOW,string,1); SendClientMessage(playerid, COLOR_WHITE, "Sa lьlitasid AOD vдlja."); return 1; } CMD:kick(playerid, params[]) <-- Error Line, but i dont get it what's wrong there. { if(PlayerData[playerid][AdminLevel] < 1) return SendUnathorizedMessage(playerid); new target, reason[129], string[256]; if(sscanf(params, "us[129]", target, reason)) return SendClientMessage(playerid, COLOR_SEABLUE, "Syntax:{FFFFFF} /kick [Player ID/Part of name] [Reason]"); if(IsPlayerConnected(target)) { if(!gIsPlayerLoggedIn[target]) return SendPlayerNotLoggedInMessage(playerid); if(PlayerData[target][AdminLevel] > PlayerData[playerid][AdminLevel]) { format(string, sizeof(string), "Admin:{FFFFFF} %s has been auto-kicked for attempting to kick %s.", GetPlayersName(target), GetPlayersName(playerid)); SendClientMessageToAll(COLOR_PALERED, string); KickEx(playerid); return 1; } format(string, sizeof(string), "Admin:{FFFFFF} %s has just kicked %s from the server, reason: %s.", GetPlayersName(playerid), GetPlayersName(target), reason); SendClientMessageToAll(COLOR_PALERED, string); KickEx(target); return 1; } else { SendPlayerNotConnectedMessage(playerid); } return 1; }
Код:
F:\Users\Kasutaja\Desktop\MySQL SA-MP server\gamemodes\fortcarson.pwn(1176) : warning 217: loose indentation F:\Users\Kasutaja\Desktop\MySQL SA-MP server\gamemodes\fortcarson.pwn(1178) : warning 217: loose indentation F:\Users\Kasutaja\Desktop\MySQL SA-MP server\gamemodes\fortcarson.pwn(1178) : error 017: undefined symbol "@yC_kick" F:\Users\Kasutaja\Desktop\MySQL SA-MP server\gamemodes\fortcarson.pwn(1178) : error 017: undefined symbol "@yC_kick" F:\Users\Kasutaja\Desktop\MySQL SA-MP server\gamemodes\fortcarson.pwn(1178) : error 017: undefined symbol "i" F:\Users\Kasutaja\Desktop\MySQL SA-MP server\gamemodes\fortcarson.pwn(1178) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.