SA-MP Forums Archive
Little Problem With kills/deaths Text Draw - 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: Little Problem With kills/deaths Text Draw (/showthread.php?tid=269910)



Little Problem With kills/deaths Text Draw - Lazy_Duck - 18.07.2011

Solved


Re: Little Problem With kills/deaths Text Draw - Famalamalam - 18.07.2011

Seeing as how you are already adding to the deaths and kills here:
pawn Код:
Deaths[playerid]++;
   Kills[killerid]++;
   KillStreak[killerid]++;
Why are you adding again in the formatted string?
pawn Код:
format(kupdate,sizeof(kupdate),"Kills : %d",Kills[killerid]++);
Try
pawn Код:
format(kupdate,sizeof(kupdate),"Kills : %d",Kills[killerid]);
format(dupdate,sizeof(dupdate),"Deaths : %d",Deaths[playerid]);



Re: Little Problem With kills/deaths Text Draw - Lazy_Duck - 18.07.2011

i tried that before, same issue...


Re: Little Problem With kills/deaths Text Draw - Famalamalam - 18.07.2011

Well that's right, so keep it in there. The issue must be somewhere else ... don't see where though :S

EDIT: Only thing that can be stopping it from updating is the "InDm[playerid]" variable, if it isn't set to 1 the code will not continue to be executed, make sure you are setting the variable right.


Re: Little Problem With kills/deaths Text Draw - Lazy_Duck - 18.07.2011

thnx for the reply


Re: Little Problem With kills/deaths Text Draw - Lazy_Duck - 18.07.2011

Solved