Money Issue
#1

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
Reply
#2

what u seriously mean ?
Reply
#3

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?
Reply
#4

GivePlayerMoney(playerid, -Money);

Reply
#5

put here code where you take your money
Reply
#6

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); ?
Reply
#7

English
Reply
#8

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
Reply
#9

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]]); ??
Reply
#10

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 .. ??
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)