Quote:
Originally Posted by LarzI
Why are you declaring new variables? This is a waste of speed and memory.
pawn Code:
public OnPlayerDeath(playerid, killerid, reason) { SendDeathMessage(killerid, playerid, weapon); GivePlayerScore(killerid, GetPlayerScore(killerid)+1); GivePlayerScore(playerid, GetPlayerScore(playerid)-1); return 1; }
|
I was declaring 2 new variables as the way LeeXian99 had his GivePlayerScore setup as. Just to make it so he could use it like that without having to use the playerid, and killerid.