SA-MP Forums Archive
dUserSetINT(PlayerName(playerid)).("deaths",0); - 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: dUserSetINT(PlayerName(playerid)).("deaths",0); (/showthread.php?tid=90912)



dUserSetINT(PlayerName(playerid)).("deaths",0); - killdahobo99 - 11.08.2009

How do you make it so when someone dies it records it in there profile so the

{PLAYERNAME}.dudb

so its supposed to tell me how many times someones died.

Heres the FS I have

http://pastebin.com/mf1c19a3


Re: dUserSetINT(PlayerName(playerid)).("deaths",0); - killdahobo99 - 11.08.2009

Why is it none of my posts get replys?....If it can't be done why not just tell me that


Re: dUserSetINT(PlayerName(playerid)).("deaths",0); - killdahobo99 - 12.08.2009

No one knows? comon if you do just help me. or tell me its not possible if it isnt possible


Re: dUserSetINT(PlayerName(playerid)).("deaths",0); - kevin974 - 12.08.2009

place this in OnPlayerDeath,

PlayerInfo[playerid][pDeaths] = dUserSetINT(GetName(playerid)).("deaths",dUserINT( GetName(playerid)).("deaths")+1);


Re: dUserSetINT(PlayerName(playerid)).("deaths",0); - killdahobo99 - 12.08.2009

Quote:
Originally Posted by kevin974
place this in OnPlayerDeath,

PlayerInfo[playerid][pDeaths] = dUserSetINT(GetName(playerid)).("deaths",dUserINT( GetName(playerid)).("deaths")+1);
thank you for not being a doushe and answering me!! It really helped!