(HELP)GivePlayerMoney, GetPlayerMoney
#1

Hello, if i have this script in that
Quote:

if(dialogid == 137)
{
if(response)
{
PlayerData[playerid][Step] = 1;
GivePlayerMoney (playerid, -500);
SendClientMessage(playerid, COLOR_GREY, "You paid 500 dollars. Get out of this bulding to start test.");
SetPlayerCheckpoint(playerid, 2046.8928,-1908.0372,13.5469,280.0000);
}

So, when i have 0 dollars and do it, i will have -500 but i dont want that
I wanna that will say me, you dont have money, if i wont have

I checked something with GetPlayerMoney but it doesnt work, so help me.
I tried it like this
Quote:

if(response)
{
PlayerData[playerid][Step] = 1;
if (GetPlayerMoney(playerid) < 500)
SendClientMessage(playerid, COLOR_RED, "You dont have enough money.");
GivePlayerMoney (playerid, -500);
SendClientMessage(playerid, COLOR_GREY, "You paid 500 dollars. Get out of this bulding to start test.");
SetPlayerCheckpoint(playerid, 2046.8928,-1908.0372,13.5469,280.0000);
}

Please HELP ME Thx..
Reply


Messages In This Thread
(HELP)GivePlayerMoney, GetPlayerMoney - by spaty2 - 13.07.2011, 12:23
Re: (HELP)GivePlayerMoney, GetPlayerMoney - by WooTFTW - 13.07.2011, 12:24
Re: (HELP)GivePlayerMoney, GetPlayerMoney - by spaty2 - 13.07.2011, 12:34
Re: (HELP)GivePlayerMoney, GetPlayerMoney - by WooTFTW - 13.07.2011, 12:36
Re: (HELP)GivePlayerMoney, GetPlayerMoney - by spaty2 - 13.07.2011, 12:40
Re: (HELP)GivePlayerMoney, GetPlayerMoney - by WooTFTW - 13.07.2011, 12:43
Re: (HELP)GivePlayerMoney, GetPlayerMoney - by 22reiko - 13.07.2011, 12:43

Forum Jump:


Users browsing this thread: 3 Guest(s)