scoreupdate
#1

Im trying to ge the score to show how many kills they have done this is what i tried and what errors i got

Код:
public ScoreUpdate() {
	foreachEx(i) {
		SetPlayerScore(i,PlayerInfo[playerid][Kills](i));
	}
	return 1;
Код:
C:\Program Files\Rockstar Games\GTA San Andreas\my server\filterscripts\gAdmin.pwn(3390) : error 017: undefined symbol "playerid"
C:\Program Files\Rockstar Games\GTA San Andreas\my server\filterscripts\gAdmin.pwn(3390) : warning 215: expression has no effect
C:\Program Files\Rockstar Games\GTA San Andreas\my server\filterscripts\gAdmin.pwn(3390) : error 001: expected token: ";", but found ")"
C:\Program Files\Rockstar Games\GTA San Andreas\my server\filterscripts\gAdmin.pwn(3390) : error 029: invalid expression, assumed zero
C:\Program Files\Rockstar Games\GTA San Andreas\my server\filterscripts\gAdmin.pwn(3390) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#2

Код:
	foreachEx(i) {
		SetPlayerScore(i,PlayerInfo[i][Kills]);
	}
Reply
#3

Didnt work just shows player id as score
Reply
#4

Why don't you just ++ to the kills (then SetPlayerScore) when OnPlayerDeath is executed, that would seem to be the logical way.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)