SA-MP Forums Archive
Money Issue - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Money Issue (/showthread.php?tid=258722)



Money Issue - Jason010 - 01.06.2011

When i buy a car the money goes down and were up so it's free it only happens with filterscripts .. Can anybody help me with that ?? Please


Re: Money Issue - wheelman_WM - 01.06.2011

what u seriously mean ?


Re: Money Issue - Jason010 - 01.06.2011

Look when i buy a car on dealerships i won't lose money , yes i do but it's like in Pay 'n Spray it cost 100 but you won't really lose it like that how to resolve this?


Re: Money Issue - wheelman_WM - 01.06.2011

GivePlayerMoney(playerid, -Money);




Re: Money Issue - CoaPsyFactor - 01.06.2011

put here code where you take your money


Re: Money Issue - Jason010 - 01.06.2011

new money = GetPlayerMoney(playerid);
GivePlayerMoney(playerid, -VehicleInfo[playerid][Price]);
GivePlayerMoney(playerid, VehicleInfo[playerid][Price]/2);

heb alleen maaar dit met GivePlayerMoney enzo ..

Enne waar zou ik doet moeten zetten dan GivePlayerMoney(playerid, -Money); ?


Re: Money Issue - wheelman_WM - 01.06.2011

English


Re: Money Issue - Wesley221 - 01.06.2011

Quote:
Originally Posted by Jason010
Посмотреть сообщение
new money = GetPlayerMoney(playerid);
GivePlayerMoney(playerid, -VehicleInfo[playerid][Price]);
GivePlayerMoney(playerid, VehicleInfo[playerid][Price]/2);

Those are the only things with GivePlayerMoney..

And where should i put this line? GivePlayerMoney(playerid, -Money);
English forum in here, theres a dutch section for your Q/A's.

Put 'GivePlayerMoney(playerid, -Money);' on the line where you buy the car


Re: Money Issue - Jason010 - 01.06.2011

If i put GivePlayerMoney(playerid, -Money); i'll got error :C:\Users\Wim\Desktop\Nieuwe map (2)\filterscripts\dealership.pwn(669) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
Or :
C:\Users\Wim\Desktop\Nieuwe map (2)\filterscripts\dealership.pwn(669) : error 017: undefined symbol "money"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.


Help Please


EDIT: Als ik het hier moet doen waar dan:
format(string9, sizeof(string9), "Name: %s\nPrice: $%i", GetVehicleNameFromID(DealerCars[8]), CarPrice[DealerCars[8]]); ??


Re: Money Issue - Jason010 - 01.06.2011

Uhm i know the prob is in my Gamemode becos i tested it with God Father and you will lose money then but what do i need to edit in GM then .. ??