[HELP] Get Money...
#1

What do i do wrong? :O


pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/hi", cmdtext, true, 10) == 0)
    {
        if(!GetPlayerMoney(playerid)>=100000) return SendClientMessage(playerid,0x008080FF,"You need 100.000$ to say hello");
        {
             SendClientMessage(playerid,0x008080FF,"Hello evryone");
             return 1;
        }
    }
    return 0;
}
Reply
#2

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/hi", cmdtext, true, 10) == 0)
{
if(GetPlayerMoney(playerid)>=100000) return SendClientMessage(playerid,0x008080FF,"You need 100.000$ to say hello");
{
SendClientMessage(playerid,0x008080FF,"Hello evryone");
return 1;
}
}
return 0;
}
Reply
#3

Quote:
Originally Posted by Sledge
Посмотреть сообщение
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/hi", cmdtext, true, 10) == 0)
{
if(GetPlayerMoney(playerid)>=100000) return SendClientMessage(playerid,0x008080FF,"You need 100.000$ to say hello");
{
SendClientMessage(playerid,0x008080FF,"Hello evryone");
return 1;
}
}
return 0;
}
Not like that... It shold be like: He need 100k to say "Hello Evryone"
Reply
#4

pawn Код:
if(GetPlayerMoney(playerid)<100000)return SendClientMessage(playerid,0xFF0000FF,"You need $100,000 to say \"Hi\"");
SendClientMessageToAll(0xFFFFFFFF,"Hello everyone!");
>= Means Greater than or Equal To
< Means Less then
Reply
#5

Quote:
Originally Posted by SilentHuntR
Посмотреть сообщение
pawn Код:
if(GetPlayerMoney(playerid)<100000)return SendClientMessage(playerid,0xFF0000FF,"You need $100,000 to say \"Hi\"");
SendClientMessageToAll(0xFFFFFFFF,"Hello everyone!");
>= Means Greater than or Equal To
< Means Less then
Thanks
Reply
#6

Damn he's faster then me.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)