[Pedido] Funзгo
#1

Olб vim pedir a funзгo que o player nao fique com dinheiro negativo quando compra algo !


Grato desde ja
Reply
#2

Tenta :
pawn Код:
if(GivePlayerMoney(playerid) != quantia) return SendClientMessage(playerid,COR,"Vocк nгo tem esse dinheiro!");
{
      //funзгo
      return 1;
}
ou ...
pawn Код:
if(GivePlayerMoney >= QUANTIA)
{
 // FUnзгo
}
else
{
    SendClientMessage(playerid, -1, "Vocк nгo tem dinheiro suficiente");
}
Reply
#3

Valeu HatedS como sempre me ajudando irmao !!! +rep
Reply
#4

if(GetPlayerMoney(playerid) < 150) return SendClientMessage(playerid,COR,"Vocк nгo tem 150 Reais !");
{
return 1;
}
Reply
#5

Quote:
Originally Posted by Wellington1999
Посмотреть сообщение
if(GetPlayerMoney(playerid) < 150) return SendClientMessage(playerid,COR,"Vocк nгo tem 150 Reais !");
{
return 1;
}
Fala serio, й praticamente o que eu postei ...

Quote:
Originally Posted by HatedS
Посмотреть сообщение
Tenta :
pawn Код:
if(GivePlayerMoney(playerid) != quantia) return SendClientMessage(playerid,COR,"Vocк nгo tem esse dinheiro!");
{
      //funзгo
      return 1;
}
ou ...
pawn Код:
if(GivePlayerMoney >= QUANTIA)
{
 // FUnзгo
}
else
{
    SendClientMessage(playerid, -1, "Vocк nгo tem dinheiro suficiente");
}
e na prуxima usa [PAWN*][/PAWN*] #Sem asterisco '-'
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)