easy question pls help ! -
noamch1997 - 11.07.2015
if (!strcmp("/laserbuy", cmdtext, true))
{
if(UserData[playerid][Laser]) return SendClientMessage(playerid, -1, "{FF0000}!יש לך מערכת לייזר");
if(UserGameData[playerid][Money] < 100000) return SendClientMessage(playerid, -1, "{FF0000}!($100");
<-----
SetMoney(playerid, UserGameData[playerid][Money]-100000);
UserData[playerid][Laser] = true;
SetPVarInt(playerid, "laser", 1);
SetPVarInt(playerid, "color", GetPVarInt(playerid, "color"));
SendClientMessage(playerid, -1, "{FF0000}!קנית לייזר");
}
its show me every time this messege (line 4)
pls help tnx
Re: easy question pls help ! -
Prokill911 - 11.07.2015
Uh, I don't read arabic so dont know what that message says...
BUT..
.
Looking at it..
I'd guess it's saying "Not enough money"
So if the users money is lower than 100,000...
It sends the msg
Код:
if(UserGameData[playerid][Money] < 100000) return SendClientMessage(playerid, -1, "{FF0000}!($100"); <-----
Change the above code to the code below.
PHP код:
if(UserGameData[playerid][Money] < 100) return SendClientMessage(playerid, -1, "{FF0000}!($100"); <-----
Re: easy question pls help ! -
noamch1997 - 11.07.2015
Quote:
Originally Posted by Prokill911
Uh, I don't read arabic so dont know what that message says...
BUT..
.
Looking at it..
I'd guess it's saying "Not enough money"
So if the users money is lower than 100,000...
It sends the msg
Код:
if(UserGameData[playerid][Money] < 100000) return SendClientMessage(playerid, -1, "{FF0000}!($100"); <-----
Change the above code to the code below.
PHP код:
if(UserGameData[playerid][Money] < 100) return SendClientMessage(playerid, -1, "{FF0000}!($100"); <-----
|
no bro i cut the message because its was too long .. it was "you dont have enough money 100,000)
so its not the problem i set 1 M to my player and even that..