05.06.2010, 17:29
Prefiro assim a sйrio, nгo sei й puxar a quantidade metida no comando
aqui estб a parte do comando fixa do comando
aqui estб a parte do comando fixa do comando
pawn Код:
if(strcmp(cmd, "/imposto", true) ==0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pFaction] != 255 && DynamicFactions[PlayerInfo[playerid][pFaction]][fType] == 1)
{
if(rank == 1)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[Comando:] /imposto [Montante]");
return 1;
}
new cash;
cash = strval(tmp);
if(cash < 1 || cash > 999){ SendClientMessage(playerid, COLOR_LIGHTYELLOW2, "[ERRO:] Invalido montante."); return 1; }