27.04.2016, 03:00
Como resolvo isso: esta dando erro na linha que faz onde o player morre poder usar o cmd novamente.
Erro:
1 Error.
Linha do ERRO:
Codigo:
Erro:
Код:
C:\Users\PequeninO\Desktop\PequeninO 26.04\gamemodes\sandreas.pwn(1745) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Linha do ERRO:
Код:
return false;
Codigo:
Код:
CMD:ccolete(playerid) //• Vida ™ { static str_msg[128]; if(GetPlayerMoney(playerid) < 100) return SendClientMessage(playerid, 0xFFF000AA, "[ERRO]: Voc? n?o tem dinheiro suficiente!"); if(Block_Colete[playerid] == 1) return SendClientMessage(playerid, 0xFFF000AA, "[ERRO]: Voc? j? pegou colete, aguarde voc? morrer para poder pegar novamente!"); format(str_msg, sizeof(str_msg), "{FF0000}[INFO]{FFFFFF} %s comprou colete e gastou R$100. ( /CCOLETE )", Nome(playerid)); SendClientMessageToAll(0xFFFFFF, str_msg); GivePlayerMoney(playerid, -200); SetPlayerArmour(playerid, 100); Block_Colete[playerid] = 1; return true; } return false; }