OnDialogResponse Raise Money and not down it..
#1

hey, i'm have a tuneing system i maid, but why its raise money and not down it
?

here the dialog response...

PHP код:
public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
if(
dialogid == 1666)
{
switch(
listitem)
{
case 
0:
{
OnPlayerCommandText(playerid"/Colors11");
}
case 
1:
{
OnPlayerCommandText(playerid"/Paintjobs2");
}
case 
2:
{
OnPlayerCommandText(playerid"/nitr11");
}
case 
3:
{
OnPlayerCommandText(playerid"/Rainbows");
}
case 
4:
{
OnPlayerCommandText(playerid"/Spoilers");
}
}
}
if(
dialogid == 1667)
{
switch(
listitem)
{
case 
0:
{
if(
GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid, -1"You dont have enough money");   
GetPlayerVehicleID(playerid);
ChangeVehicleColor(vehicleid,0);
GivePlayerMoney(playeridGetPlayerMoney(playerid) - 1500);
}
case 
1:
{
if(
GetPlayerMoney(playerid) >= 1500)
{
GetPlayerVehicleID(playerid);
ChangeVehicleColor(vehicleid,1);
GivePlayerMoney(playeridGetPlayerMoney(playerid) - 1500);
}
if(
GetPlayerMoney(playerid) < 1500)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
case 
2:
{
{
if(
GetPlayerMoney(playerid) >= 1500)
{
GetPlayerVehicleID(playerid);
ChangeVehicleColor(vehicleid,3);
GivePlayerMoney(playeridGetPlayerMoney(playerid) - 1500);
}
if(
GetPlayerMoney(playerid) < 1500)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
}
case 
3:
{
{
{
if(
GetPlayerMoney(playerid) >= 1500)
{
GetPlayerVehicleID(playerid);
ChangeVehicleColor(vehicleid93 ,93);
GivePlayerMoney(playeridGetPlayerMoney(playerid) - 1500);
}
if(
GetPlayerMoney(playerid) < 1500)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
}
}
case 
4:
{
{
{
if(
GetPlayerMoney(playerid) >= 1500)
{
GetPlayerVehicleID(playerid);
ChangeVehicleColor(vehicleid86 ,86);
GivePlayerMoney(playeridGetPlayerMoney(playerid) - 1500);
}
if(
GetPlayerMoney(playerid) < 1500)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
}
}
case 
5:
{
{
{
if(
GetPlayerMoney(playerid) >= 1500)
{
GetPlayerVehicleID(playerid);
ChangeVehicleColor(vehicleid147 ,147);
GivePlayerMoney(playeridGetPlayerMoney(playerid) - 1500);
}
if(
GetPlayerMoney(playerid) < 1500)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
}
}
case 
6:
{
{
{
if(
GetPlayerMoney(playerid) >= 1500)
{
GetPlayerVehicleID(playerid);
ChangeVehicleColor(vehicleid145 ,145);
GivePlayerMoney(playeridGetPlayerMoney(playerid) - 1500);
}
if(
GetPlayerMoney(playerid) < 1500)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
}
}
}
}
if(
dialogid == 1671)
{
switch(
listitem)
{
case 
0:
{
{
{
if(
GetPlayerMoney(playerid) >= 2500)
{
GetPlayerVehicleID(playerid);
ChangeVehiclePaintjob(vehicleid1)
GivePlayerMoney(playeridGetPlayerMoney(playerid) - 2500);
}
if(
GetPlayerMoney(playerid) < 2500)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
}
}
case 
1:
{
{
{
{
if(
GetPlayerMoney(playerid) >= 2500)
{
GetPlayerVehicleID(playerid);
ChangeVehiclePaintjob(vehicleid2)
GivePlayerMoney(playeridGetPlayerMoney(playerid) - 2500);
}
if(
GetPlayerMoney(playerid) < 2500)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
}
}
}
case 
2:
{
{
{
if(
GetPlayerMoney(playerid) >= 2500)
{
GetPlayerVehicleID(playerid);
ChangeVehiclePaintjob(vehicleid3)
GivePlayerMoney(playeridGetPlayerMoney(playerid) - 2500);
}
if(
GetPlayerMoney(playerid) < 2500)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
}
}
}
}
if(
dialogid == 1668)
{
switch(
listitem)
{
case 
0:
{
{
{
{
if(
GetPlayerMoney(playerid) >= 10000)
{
AddVehicleComponent(GetPlayerVehicleID(playerid),1008);
GivePlayerMoney(playeridGetPlayerMoney(playerid) - 10000);
}
if(
GetPlayerMoney(playerid) < 10000)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
}
}
}
case 
1:
{
{
{
{
if(
GetPlayerMoney(playerid) >= 10000)
{
AddVehicleComponent(GetPlayerVehicleID(playerid),1009);
GivePlayerMoney(playeridGetPlayerMoney(playerid) -10000);
}
if(
GetPlayerMoney(playerid) < 10000)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
}
}
}
case 
2:
{
{
{
{
if(
GetPlayerMoney(playerid) >= 10000)
{
GivePlayerMoney(playeridGetPlayerMoney(playerid) - 10000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1010);
}
if(
GetPlayerMoney(playerid) < 10000)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
}
}
}
}
}
if(
dialogid == 16771)
{
switch(
listitem)
{
case 
0:
{
OnPlayerCommandText(playerid"/RainbowCar");
}
case 
1:
{
OnPlayerCommandText(playerid"/PJRainbow");
}
}
}
if(
dialogid == 167112)
{
switch(
listitem)
{
case 
0:
{
}
case 
1:
{
if(
GetPlayerMoney(playerid) >= 10000)
{
GivePlayerMoney(playeridGetPlayerMoney(playerid) - 10000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1001);
}
if(
GetPlayerMoney(playerid) < 10000)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
case 
2:
{
if(
GetPlayerMoney(playerid) >= 10000)
{
GivePlayerMoney(playeridGetPlayerMoney(playerid) - 10000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1002);
}
if(
GetPlayerMoney(playerid) < 10000)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
case 
3:
{
if(
GetPlayerMoney(playerid) >= 10000)
{
GivePlayerMoney(playeridGetPlayerMoney(playerid) - 10000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1003);
}
if(
GetPlayerMoney(playerid) < 10000)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
case 
4:
{
if(
GetPlayerMoney(playerid) >= 10000)
{
GivePlayerMoney(playeridGetPlayerMoney(playerid) - 10000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1014);
}
if(
GetPlayerMoney(playerid) < 10000)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
case 
5:
{
if(
GetPlayerMoney(playerid) >= 10000)
{
GivePlayerMoney(playeridGetPlayerMoney(playerid) - 10000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1015);
}
if(
GetPlayerMoney(playerid) < 10000)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
case 
6:
{
if(
GetPlayerMoney(playerid) >= 10000)
{
GivePlayerMoney(playeridGetPlayerMoney(playerid) - 10000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1016);
}
if(
GetPlayerMoney(playerid) < 10000)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
case 
7:
{
OnPlayerCommandText(playerid"/Spoilers2");
}
}
}
if(
dialogid == 1671128)
{
switch(
listitem)
{
case 
0:
{
OnPlayerCommandText(playerid"/SpoilerFlash");
}
case 
1:
{
OnPlayerCommandText(playerid"/SpoilerSultan");
}
case 
2:
{
OnPlayerCommandText(playerid"/SpoilerElegy");
}
case 
3:
{
OnPlayerCommandText(playerid"/SpoilerUranus");
}
}
}
if(
dialogid == 16711234)
{
switch(
listitem)
{
case 
0:
{
{
if(
GetPlayerMoney(playerid) >= 5000)
{
GivePlayerMoney(playeridGetPlayerMoney(playerid) -5000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1139);
}
if(
GetPlayerMoney(playerid) < 5000)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
}
case 
1:
{
if(
GetPlayerMoney(playerid) >= 5000)
{
GivePlayerMoney(playeridGetPlayerMoney(playerid) -5000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1139);
}
if(
GetPlayerMoney(playerid) < 5000)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
}
}
if(
dialogid == 16711235)
{
switch(
listitem)
{
case 
0:
{
if(
GetPlayerMoney(playerid) >= 5000)
{
GivePlayerMoney(playeridGetPlayerMoney(playerid) -5000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1049);
}
if(
GetPlayerMoney(playerid) < 5000)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
case 
1:
{
if(
GetPlayerMoney(playerid) >= 5000)
{
GivePlayerMoney(playeridGetPlayerMoney(playerid) -5000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1059);
}
if(
GetPlayerMoney(playerid) < 5000)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
}
}
if(
dialogid == 1671123)
{
switch(
listitem)
{
case 
0:
{
if(
GetPlayerMoney(playerid) >= 5000)
{
GivePlayerMoney(playeridGetPlayerMoney(playerid) -5000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1147);
}
if(
GetPlayerMoney(playerid) < 5000)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
case 
1:
{
if(
GetPlayerMoney(playerid) >= 5000)
{
GivePlayerMoney(playeridGetPlayerMoney(playerid) -5000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1148);
}
if(
GetPlayerMoney(playerid) < 5000)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
}
}
if(
dialogid == 16711236)
{
switch(
listitem)
{
case 
0:
{
if(
GetPlayerMoney(playerid) >= 5000)
{
GivePlayerMoney(playeridGetPlayerMoney(playerid) -5000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1165);
}
if(
GetPlayerMoney(playerid) < 5000)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
case 
1:
{
if(
GetPlayerMoney(playerid) >= 5000)
{
GivePlayerMoney(playeridGetPlayerMoney(playerid) -5000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1164);
}
if(
GetPlayerMoney(playerid) < 5000)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
}
}
return 
1;

Reply
#2

Replace
pawn Код:
GivePlayerMoney(playerid, GetPlayerMoney(playerid) - 1500);
With
pawn Код:
GivePlayerMoney(playerid, -1500);
I had this problem too, somehow removing GetPlayerMoney fixed it.
Reply
#3

Yeah, you have to make sure the minus sign is next to the amount you want to decrease by.
Reply
#4

Its Still Make it raise.
i will do it in math
if i got 500k.
i want to buy, a black color, cost 1500$
its do it :
500K • 2 = 1,000,000 - 1500$
i have now a 985,000$.

New dialog Pwn Code :
PHP код:
public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
if(
dialogid == 1666)
{
switch(
listitem)
{
case 
0:
{
OnPlayerCommandText(playerid"/Colors11");
}
case 
1:
{
OnPlayerCommandText(playerid"/Paintjobs2");
}
case 
2:
{
OnPlayerCommandText(playerid"/nitr11");
}
case 
3:
{
OnPlayerCommandText(playerid"/Rainbows");
}
case 
4:
{
OnPlayerCommandText(playerid"/Spoilers");
}
}
}
if(
dialogid == 1667)
{
switch(
listitem)
{
case 
0:
{
if(
GetPlayerMoney(playerid) < 1000) return SendClientMessage(playerid, -1"You dont have enough money");   
GetPlayerVehicleID(playerid);
ChangeVehicleColor(vehicleid,0);
GivePlayerMoney(playeridGetPlayerMoney(playerid) -1500);
}
case 
1:
{
if(
GetPlayerMoney(playerid) >= 1500)
{
GetPlayerVehicleID(playerid);
ChangeVehicleColor(vehicleid,1);
GivePlayerMoney(playeridGetPlayerMoney(playerid) -1500);
}
if(
GetPlayerMoney(playerid) < 1500)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
case 
2:
{
{
if(
GetPlayerMoney(playerid) >= 1500)
{
GetPlayerVehicleID(playerid);
ChangeVehicleColor(vehicleid,3);
GivePlayerMoney(playeridGetPlayerMoney(playerid) -1500);
}
if(
GetPlayerMoney(playerid) < 1500)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
}
case 
3:
{
{
{
if(
GetPlayerMoney(playerid) >= 1500)
{
GetPlayerVehicleID(playerid);
ChangeVehicleColor(vehicleid93 ,93);
GivePlayerMoney(playeridGetPlayerMoney(playerid) -1500);
}
if(
GetPlayerMoney(playerid) < 1500)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
}
}
case 
4:
{
{
{
if(
GetPlayerMoney(playerid) >= 1500)
{
GetPlayerVehicleID(playerid);
ChangeVehicleColor(vehicleid86 ,86);
GivePlayerMoney(playeridGetPlayerMoney(playerid) -1500);
}
if(
GetPlayerMoney(playerid) < 1500)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
}
}
case 
5:
{
{
{
if(
GetPlayerMoney(playerid) >= 1500)
{
GetPlayerVehicleID(playerid);
ChangeVehicleColor(vehicleid147 ,147);
GivePlayerMoney(playeridGetPlayerMoney(playerid) -1500);
}
if(
GetPlayerMoney(playerid) < 1500)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
}
}
case 
6:
{
{
{
if(
GetPlayerMoney(playerid) >= 1500)
{
GetPlayerVehicleID(playerid);
ChangeVehicleColor(vehicleid145 ,145);
GivePlayerMoney(playeridGetPlayerMoney(playerid) -1500);
}
if(
GetPlayerMoney(playerid) < 1500)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
}
}
}
}
if(
dialogid == 1671)
{
switch(
listitem)
{
case 
0:
{
{
{
if(
GetPlayerMoney(playerid) >= 2500)
{
GetPlayerVehicleID(playerid);
ChangeVehiclePaintjob(vehicleid1)
GivePlayerMoney(playeridGetPlayerMoney(playerid) -2500);
}
if(
GetPlayerMoney(playerid) < 2500)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
}
}
case 
1:
{
{
{
{
if(
GetPlayerMoney(playerid) >= 2500)
{
GetPlayerVehicleID(playerid);
ChangeVehiclePaintjob(vehicleid2)
GivePlayerMoney(playeridGetPlayerMoney(playerid) -2500);
}
if(
GetPlayerMoney(playerid) < 2500)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
}
}
}
case 
2:
{
{
{
if(
GetPlayerMoney(playerid) >= 2500)
{
GetPlayerVehicleID(playerid);
ChangeVehiclePaintjob(vehicleid3)
GivePlayerMoney(playeridGetPlayerMoney(playerid) -2500);
}
if(
GetPlayerMoney(playerid) < 2500)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
}
}
}
}
if(
dialogid == 1668)
{
switch(
listitem)
{
case 
0:
{
{
{
{
if(
GetPlayerMoney(playerid) >= 10000)
{
AddVehicleComponent(GetPlayerVehicleID(playerid),1008);
GivePlayerMoney(playeridGetPlayerMoney(playerid) -10000);
}
if(
GetPlayerMoney(playerid) < 10000)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
}
}
}
case 
1:
{
{
{
{
if(
GetPlayerMoney(playerid) >= 10000)
{
AddVehicleComponent(GetPlayerVehicleID(playerid),1009);
GivePlayerMoney(playeridGetPlayerMoney(playerid) -10000);
}
if(
GetPlayerMoney(playerid) < 10000)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
}
}
}
case 
2:
{
{
{
{
if(
GetPlayerMoney(playerid) >= 10000)
{
GivePlayerMoney(playeridGetPlayerMoney(playerid) -10000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1010);
}
if(
GetPlayerMoney(playerid) < 10000)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
}
}
}
}
}
if(
dialogid == 16771)
{
switch(
listitem)
{
case 
0:
{
OnPlayerCommandText(playerid"/RainbowCar");
}
case 
1:
{
OnPlayerCommandText(playerid"/PJRainbow");
}
}
}
if(
dialogid == 167112)
{
switch(
listitem)
{
case 
0:
{
}
case 
1:
{
if(
GetPlayerMoney(playerid) >= 10000)
{
GivePlayerMoney(playeridGetPlayerMoney(playerid) -10000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1001);
}
if(
GetPlayerMoney(playerid) < 10000)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
case 
2:
{
if(
GetPlayerMoney(playerid) >= 10000)
{
GivePlayerMoney(playeridGetPlayerMoney(playerid) -10000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1002);
}
if(
GetPlayerMoney(playerid) < 10000)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
case 
3:
{
if(
GetPlayerMoney(playerid) >= 10000)
{
GivePlayerMoney(playeridGetPlayerMoney(playerid) -10000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1003);
}
if(
GetPlayerMoney(playerid) < 10000)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
case 
4:
{
if(
GetPlayerMoney(playerid) >= 10000)
{
GivePlayerMoney(playeridGetPlayerMoney(playerid) -10000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1014);
}
if(
GetPlayerMoney(playerid) < 10000)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
case 
5:
{
if(
GetPlayerMoney(playerid) >= 10000)
{
GivePlayerMoney(playeridGetPlayerMoney(playerid) -10000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1015);
}
if(
GetPlayerMoney(playerid) < 10000)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
case 
6:
{
if(
GetPlayerMoney(playerid) >= 10000)
{
GivePlayerMoney(playeridGetPlayerMoney(playerid) -10000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1016);
}
if(
GetPlayerMoney(playerid) < 10000)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
case 
7:
{
OnPlayerCommandText(playerid"/Spoiler2");
}
}
}
if(
dialogid == 1671128)
{
switch(
listitem)
{
case 
0:
{
OnPlayerCommandText(playerid"/SpoilerFlash");
}
case 
1:
{
OnPlayerCommandText(playerid"/SpoilerSultan");
}
case 
2:
{
OnPlayerCommandText(playerid"/SpoilerElegy");
}
case 
3:
{
OnPlayerCommandText(playerid"/SpoilerUranus");
}
}
}
if(
dialogid == 16711234)
{
switch(
listitem)
{
case 
0:
{
{
if(
GetPlayerMoney(playerid) >= 5000)
{
GivePlayerMoney(playeridGetPlayerMoney(playerid) -5000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1139);
}
if(
GetPlayerMoney(playerid) < 5000)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
}
case 
1:
{
if(
GetPlayerMoney(playerid) >= 5000)
{
GivePlayerMoney(playeridGetPlayerMoney(playerid) -5000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1139);
}
if(
GetPlayerMoney(playerid) < 5000)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
}
}
if(
dialogid == 16711235)
{
switch(
listitem)
{
case 
0:
{
if(
GetPlayerMoney(playerid) >= 5000)
{
GivePlayerMoney(playeridGetPlayerMoney(playerid) -5000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1049);
}
if(
GetPlayerMoney(playerid) < 5000)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
case 
1:
{
if(
GetPlayerMoney(playerid) >= 5000)
{
GivePlayerMoney(playeridGetPlayerMoney(playerid) -5000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1059);
}
if(
GetPlayerMoney(playerid) < 5000)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
}
}
if(
dialogid == 1671123)
{
switch(
listitem)
{
case 
0:
{
if(
GetPlayerMoney(playerid) >= 5000)
{
GivePlayerMoney(playeridGetPlayerMoney(playerid) -5000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1147);
}
if(
GetPlayerMoney(playerid) < 5000)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
case 
1:
{
if(
GetPlayerMoney(playerid) >= 5000)
{
GivePlayerMoney(playeridGetPlayerMoney(playerid) -5000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1148);
}
if(
GetPlayerMoney(playerid) < 5000)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
}
}
if(
dialogid == 16711236)
{
switch(
listitem)
{
case 
0:
{
if(
GetPlayerMoney(playerid) >= 5000)
{
GivePlayerMoney(playeridGetPlayerMoney(playerid) -5000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1165);
}
if(
GetPlayerMoney(playerid) < 5000)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
case 
1:
{
if(
GetPlayerMoney(playerid) >= 5000)
{
GivePlayerMoney(playeridGetPlayerMoney(playerid) -5000);
AddVehicleComponent(GetPlayerVehicleID(playerid),1164);
}
if(
GetPlayerMoney(playerid) < 5000)
{
SendClientMessage(playerid, -1"You Dont Have Enough Money");
}
}
}
}
return 
1;

Reply
#5

If you want to do it that way it should be SetPlayerMoney but since it's not needed, just erase the GetPlayerMoney(playerid), as stated below.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)