13.07.2011, 12:23
Hello, if i have this script in that
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
Please HELP ME Thx..
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); } |
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); } |