16.08.2011, 22:35
Hi i get a punch of errors when i add this command
(357) : error 010: invalid function or declaration
(359) : error 010: invalid function or declaration
(362) : error 010: invalid function or declaration
(365) : error 010: invalid function or declaration
(369) : error 010: invalid function or declaration
(372) : error 010: invalid function or declaration
(373) : error 010: invalid function or declaration
(375) : error 010: invalid function or declaration
(377) : error 010: invalid function or declaration
(38 : error 010: invalid function or declaration
(389) : error 010: invalid function or declaration
(396) : error 010: invalid function or declaration
(401) : error 010: invalid function or declaration
(632) : warning 203: symbol is never used: "level"
(632) : warning 203: symbol is never used: "para1"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
thanks , hope get help
Код:
(line 357) if(strcmp(cmdtext, "/makeleader", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /makeleader [playerid/PartOfName] [Number(1-10)]"); return 1; } new para1; new level; para1 = ReturnUser(tmp); tmp = strtok(cmdtext, idx); level = strval(tmp); if(level > 0 || level < 1) { SendClientMessage(playerid, COLOR_GREY, "ERROR: Dont go below number 0 nor above number 1!"); return 1; } if (PlayerInfo[playerid][pAdmin] >= 1337) { if(IsPlayerConnected(para1)) { if(para1 != INVALID_PLAYER_ID) { GetPlayerName(para1, giveplayer, sizeof(giveplayer)); GetPlayerName(playerid, sendername, sizeof(sendername)); PlayerInfo[para1][pLeader] = level; format(string, sizeof(string), "NOTICE: You have been promoted to Leader of a faction by Admin %s", sendername); SendClientMessage(para1, COLOR_LIGHTBLUE, string); format(string, sizeof(string), "NOTICE: You have given %s control to run Faction Number %d.", giveplayer,level); SendClientMessage(playerid, COLOR_LIGHTBLUE, string); format(string, 256, "[ADMIN]: %s has promoted %s to Leader of faction %d.", sendername, giveplayer, level); ABroadCast(COLOR_LIGHTRED,string,1); if(level == 0) { PlayerInfo[para1][pChar] = 0; } else if(level == 3) { PlayerInfo[para1][pChar] = 287; } gTeam[para1] = 11; PlayerInfo[para1][pTeam] = 11; SetPlayerSkin(para1, PlayerInfo[para1][pChar]); } }//not connected } else { SendClientMessage(playerid, COLOR_GRAD1, "ERROR: You are not authorized to use that command!"); } } return 1; }
(357) : error 010: invalid function or declaration
(359) : error 010: invalid function or declaration
(362) : error 010: invalid function or declaration
(365) : error 010: invalid function or declaration
(369) : error 010: invalid function or declaration
(372) : error 010: invalid function or declaration
(373) : error 010: invalid function or declaration
(375) : error 010: invalid function or declaration
(377) : error 010: invalid function or declaration
(38 : error 010: invalid function or declaration
(389) : error 010: invalid function or declaration
(396) : error 010: invalid function or declaration
(401) : error 010: invalid function or declaration
(632) : warning 203: symbol is never used: "level"
(632) : warning 203: symbol is never used: "para1"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
thanks , hope get help