I need a simple code
#1

Hey guys. Can someone post a code so if someone kills someone their points will go +1? thanks people!
Reply
#2

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(killerid != INVALID_PLAYER_ID){
        SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
    }
}
Reply
#3

Код:
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.
Reply
#4

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
Reply
#5

Quote:
Originally Posted by ledzep
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
Thanks you a big help. I put it under onplayerdisconnect before whoops
Reply
#6

lol?
You run a stunt server & can't code a points system?
Use
Код:
SetPlayerScore(killerid, GetPlayerScore(killerid)+1);
Reply
#7

Quote:
Originally Posted by Abernethy
lol?
You run a stunt server & can't code a points system?
Use
Код:
SetPlayerScore(killerid, GetPlayerScore(killerid)+1);
whats wrong with the above posted code? it seems to be working good
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)