08.06.2017, 20:55
Bem eu queria adicionar uma org neutra para poder utilizar o comando /taser mas fica dando esse erro e nгo consigo identificar o problema.
Erros:
Linha do erro:
Cуdigo:
Erros:
Код:
C:\Users\Cliente\Desktop\[] GTA SA []\Servidor\Brasil Game Over\gamemodes\BPS.pwn(60247) : error 017: undefined symbol "string" C:\Users\Cliente\Desktop\[] GTA SA []\Servidor\Brasil Game Over\gamemodes\BPS.pwn(60247) : error 017: undefined symbol "string" C:\Users\Cliente\Desktop\[] GTA SA []\Servidor\Brasil Game Over\gamemodes\BPS.pwn(60247) : error 029: invalid expression, assumed zero C:\Users\Cliente\Desktop\[] GTA SA []\Servidor\Brasil Game Over\gamemodes\BPS.pwn(60247) : fatal error 107: too many error messages on one line
Код:
format(string, sizeof(string), "* %s guardou seu taser no coldre.", NomePlayer(playerid));
Код:
CMD:taser(playerid, params[]) { if(PlayerInfo[playerid][pJailed] != 0) { SendClientMessage(playerid,COLOR_GRAD1," Vocк nгo pode usar este comando na cadeia!"); } if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_GRAD1," Vocк nгo pode usar este comando dentro de um veнculo!"); if(PlayerInfo[playerid][pJailed] == 9) { SendClientMessage(playerid,COLOR_GRAD1," Vocк nгo pode usar este comando nas Celas da Administraзгo!"); return true; } if(IsACop(playerid) && GetPlayerOrg(playerid) == 10) if(InTaser[playerid] == true) { RemovePlayerAttachedObjectEx(playerid,Vaga_Taser); InTaser[playerid] = false; RemoveArmament(playerid); format(string, sizeof(string), "* %s guardou seu taser no coldre.", NomePlayer(playerid)); SendClientMessageInRange(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); if(balaseagle[playerid] < 1)SetPlayerAmmo(playerid, 2, 0); return true; } if(InTaser[playerid] == false) { if(gettime() < GetPVarInt(playerid, #VarFlood9)) return SendClientMessage(playerid, COLOR_GRAD1, "O Taser esta recarregando, espere 15 segundos para pegar novamente."); SetPVarInt(playerid, #VarFlood9, gettime()+15); InTaser[playerid] = true; SetArmament(playerid, 18642); new id = CountAttachedObjects(playerid); SetPlayerAttachedObject(playerid, 0, 18642, 6, 0.06, 0.01, 0.08, 180.0, 0.0, 0.0); SetPlayerAttachedObjectEx(18642,Vaga_Taser,playerid,id); format(string, sizeof(string), "* %s retirou seu taser do coldre.", NomePlayer(playerid)); SendClientMessageInRange(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); return true; } return true; } else { SendClientMessage(playerid,COLOR_WHITE,"Vocк nгo й um COP ou Guarda."); } return true; }