[HELP] PlayerSpawn -$100 Anoying Bug!
#1

Hy. I have checked my code hundreds of times trying to figure out why my players might loose $100 everytime they die/spawn.
I searched everywhere and i couldn't find anything related to GetPlayerMoney/SetPlayerMoney/ResetPlayerMoney.

So i am asking if there is some kind of auto-configured loss of money when dying.
Reply
#2

The command is GivePlayerMoney
Reply
#3

lol dice7 u fail this is like in single player just do onplayerdeath or onplayerspawn:

Code:
public OnPlayerDeath(playerid,killerid);
{
  GetPlayerMoney(playerid, +100)// somthing liek that :X havent scripted in a while xD
}
Reply
#4

I was telling him the correct function to search, since he was searching for GetPlayerMoney/SetPlayerMoney/ResetPlayerMoney. Your logic is void
Reply
#5

Woah, thank you, DAMN DEVS could atleast have told us that default onplayerdeath function substracts $100 from player's cash
Reply
#6

GivePlayerMoney(playerid,GetPlayerMoney(playerid)+ 100);

or

GivePlayerMoney(playerid,100);


thats so hard omg xD
Reply
#7

Quote:
Originally Posted by BlackFoX
GivePlayerMoney(playerid,GetPlayerMoney(playerid)+ 100);

or

GivePlayerMoney(playerid,100);


thats so hard omg xD
No it's not, but because i did not know about that issue i lost 1 hour lookin thru' my script trying to find out w** i did wrong.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)