how to chek mony
#1

how can i chek player mony befor paying
Quote:

if(GetPlayerMoney(playerid) < 100)
{
SendClientMessage(playerid,GREEN,"you can't pay (no mony)");
return 1;
}

is that corect ?
Reply
#2

if players got lower money than 100 he will get message. But you can do it in one line:
Код:
if(GetPlayerMoney(playerid) < 100)return SendClientMessage(playerid, GREEN, "You can't pay (no mony)");
Reply
#3

ok thanks that's all i want to know
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)