10.10.2010, 10:45
Now in my script i have like this:
I know i failed somewhere, i have no errors, just when i spawn it says "Score:0" whole time.
Код:
forward tdscoretimer(playerid); new tdscore; public tdscoretimer(playerid) { tdscore = GetPlayerScore(playerid); return 1; } public OnGameModeInit() { SetTimer("tdscoretimer", 5000, true); new tds[128]; format(tds, sizeof(tds), "Score:%d",tdscore); Textdraw1 = TextDrawCreate(498.000000, 118.000000, tds); for(new i; i < MAX_PLAYERS; i ++) { if(IsPlayerConnected(i)) { TextDrawShowForPlayer(i, Textdraw0); TextDrawShowForPlayer(i, Textdraw1); } } return 1; }