03.07.2009, 02:30
Hey guys. Can someone post a code so if someone kills someone their points will go +1? thanks people!
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid != INVALID_PLAYER_ID){
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
}
}
C:\DOCUME~1\Braeden\Desktop\SA\test\GAMEMO~1\SU.pwn(11466) : error 017: undefined symbol "killerid" C:\DOCUME~1\Braeden\Desktop\SA\test\GAMEMO~1\SU.pwn(11468) : error 017: undefined symbol "killerid" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
public OnPlayerDeath(playerid, killerid, reason)
Originally Posted by ledzep
pawn Код:
|
SetPlayerScore(killerid, GetPlayerScore(killerid)+1);
Originally Posted by Abernethy
lol?
You run a stunt server & can't code a points system? Use Код:
SetPlayerScore(killerid, GetPlayerScore(killerid)+1); |