Store in Variables - 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)
+--- Thread: Store in Variables (
/showthread.php?tid=536568)
Store in Variables -
FishyZ - 10.09.2014
Well...
here is the variable
new giveplayermoney[MAX_PLAYERS];
OnPlayerDeath(playerid,killerid,weaponid)
I want to get killerid and store in my variable
and then i want to use the variable to give a player money
(I KNOW HOW TO GIVE HIM WITHOUT USING VARIABLES BUT THIS IS TO GROW MY SKILLS)
OnPlayerDeath(playerid,6969); is the solution but i want to learn so
Re: Store in Variables -
DobbysGamertag - 10.09.2014
pawn Код:
giveplayermoney[killerid]
The same will work if you're using GivePlayerMoney(killerid,amount);