SA-MP Forums Archive
[HELP] Get Money... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Get Money... (/showthread.php?tid=203123)



[HELP] Get Money... - Larsey123IsMe - 26.12.2010

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;
}



Re: [HELP] Get Money... - Sledge - 26.12.2010

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;
}


Re: [HELP] Get Money... - Larsey123IsMe - 26.12.2010

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"


Re: [HELP] Get Money... - Joe Staff - 26.12.2010

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


Re: [HELP] Get Money... - Larsey123IsMe - 26.12.2010

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


Re: [HELP] Get Money... - HyperZ - 26.12.2010

Damn he's faster then me.