15.01.2010, 17:56
Fala Galera 
Estou com uma duvida num comando do GM
Nao estou conseguindo arrumar esse bug alguem me ajuda

Estou com uma duvida num comando do GM
Code:
//----------------------------------[offduty]----------------------------------------------- if(strcmp(cmd, "/batercartao", true) == 0) { if(IsPlayerConnected(playerid)) { GetPlayerName(playerid, sendername, sizeof(sendername)); if(PlayerInfo[playerid][pMembro] == 1 || PlayerInfo[playerid][pLider] == 1 || PlayerInfo[playerid][pMembro] == 17 || PlayerInfo[playerid][pLider] == 17) { if (PlayerToPoint(3, playerid,255.3,77.4,1003.6) || PlayerToPoint(3,playerid,-1616.1294,681.1594,7.1875) || PlayerInfo[playerid][pLocal] != 255) { if(OnDuty[playerid]==0) { format(string, sizeof(string), "* Oficial %s Pegou seu cracha Do Armбrio.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); SendClientMessageToAll(COLOR_DBLUE, "Oficial %s esta fardado ", sendername); GivePlayerWeapon(playerid, 24, 107); GivePlayerWeapon(playerid, 29, 200); GivePlayerWeapon(playerid, 41, 500); GivePlayerWeapon(playerid, 4, 0); OnDuty[playerid] = 1; } else if(OnDuty[playerid]==1) { format(string, sizeof(string), "* PM/PC/PF %s Colocou Seu Cracha em Seu Armбrio.", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); GivePlayerWeapon(playerid, 23, 100); GivePlayerWeapon(playerid, 29, 200); GivePlayerWeapon(playerid, 10, 1); GivePlayerWeapon(playerid, 43, 0); GivePlayerWeapon(playerid, 5, 0); OnDuty[playerid] = 0; } } else { SendClientMessage(playerid, COLOR_GRAD2, " Vocк nгo estб em um vestiбrio !"); return 1; } }
Code:
SendClientMessageToAll(COLOR_DBLUE, "Oficial %s esta fardado ", sendername);
Code:
C:\Users\john\Desktop\serve\gamemodes\CityGod(2).pwn(18304) : warning 202: number of arguments does not match definition C:\Users\john\Desktop\serve\gamemodes\CityGod(2).pwn(43869) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg") Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase Header size: 10148 bytes Code size: 1840736 bytes Data size: 7170184 bytes Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion Total requirements: 9037452 bytes 2 Warnings.