SetPlayerScore.
#1

I need some help with SetPlayerScore,

I've written this function into my script, it has a payday system everyhour so I wrote this.

**Line 7461** SetPlayerScore(playerid, +-); - Which would hopefully +1 to your score when that callback is activated, such as PayDay function.

Unfortunately i'm getting these errors,

Код:
C:\Users\Mike\Desktop\Script\gamemodes\PS-RP.pwn(7461) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#2

What about this?

pawn Код:
SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
Reply
#3

Quote:
Originally Posted by Twisted_Insane
Посмотреть сообщение
What about this?

pawn Код:
SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
That looks familiar to a Kill/score system, mines for a Timer activated function which does not contain a "killerid"
Reply
#4

Then replace the killerid to the variable name you are using to the loop on the timer's Callback.
Reply
#5

try ++
Reply
#6

pawn Код:
new score = GetPlayerScore(playerid)++;
SetPlayerScore(playerid, score);
Reply
#7

pawn Код:
SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)