I need a simple code - 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: I need a simple code (
/showthread.php?tid=84764)
I need a simple code -
BP13 - 03.07.2009
Hey guys. Can someone post a code so if someone kills someone their points will go +1? thanks people!
Re: I need a simple code -
ledzep - 03.07.2009
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid != INVALID_PLAYER_ID){
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
}
}
Re: I need a simple code -
BP13 - 03.07.2009
Код:
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.
Re: I need a simple code -
ledzep - 03.07.2009
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
Re: I need a simple code -
BP13 - 03.07.2009
Quote:
Originally Posted by ledzep
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
|
Thanks you a big help. I put it under onplayerdisconnect before

whoops
Re: I need a simple code -
Abernethy - 03.07.2009
lol?
You run a stunt server & can't code a points system?
Use
Код:
SetPlayerScore(killerid, GetPlayerScore(killerid)+1);
Re: I need a simple code -
BP13 - 03.07.2009
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