31.07.2012, 10:53
help with team score textdraw (+REP) I have 2 teams TERRORIST VS COUNTER TERRORISTS
new Text: Score;
//in top of script
//under onGameModeInit
Score = TextDrawCreate(18.000000, 190.000000, "");
TextDrawBackgroundColor(Score , 255);
TextDrawFont(Score , 3);
TextDrawLetterSize(Score , 0.379999, 1.499999);
TextDrawColor(Score , -1);
TextDrawSetOutline(Score , 0);
TextDrawSetProportional(Score , 1);
TextDrawSetShadow(Score , 1);
SetTimer("UpdateTimer",20*1000,1);
forward UpdateTimer();
public UpdateTimer() { foreach(Player,i) { TextDrawSetString(Score,GetPlayerScore(playerid)); } }
hmm
you will need foreach include pawn Код:
Код:
forward UpdateTimer(); Код:
public UpdateTimer() { foreach(Player,i) { TextDrawSetString(Score,GetPlayerScore(playerid)); } } |
C:\Users\Mark Jayson\Desktop\samp03e_svr_R2_win32\gamemodes\lvdm.pwn(247) : error 017: undefined symbol "playerid" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.