Larsey123IsMe
Unregistered
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;
}
Posts: 172
Threads: 33
Joined: Dec 2010
Reputation:
0
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;
}
Larsey123IsMe
Unregistered
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"
Larsey123IsMe
Unregistered
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