31.05.2011, 19:25
Hello people,i wanna show score of player as textdraw and i do it this:
OnGameModeInit:
OnPlayerDisconnect:
OnPlayerConnect:
And i get this:
warning 213: tag mismatch
warning 213: tag mismatch
warning 213: tag mismatch
warning 203: symbol is never used: "tdscore"
Thanks for help.
pawn Код:
forward tdscoretimer(playerid);
new tdscore[MAX_PLAYERS];
new Textdraw1[MAX_PLAYERS];
public tdscoretimer()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new tds[128];
format(tds, sizeof(tds), "Score:%d",GetPlayerScore(i));
TextDrawSetString(Textdraw1[i], tds);
}
}
return 1;
}
pawn Код:
SetTimer("tdscoretimer", 5000, true);
pawn Код:
TextDrawDestroy(Textdraw1[playerid]);
pawn Код:
new tds[128];
format(tds, sizeof(tds), "Score:%d",GetPlayerScore(playerid));
Textdraw1[playerid] = TextDrawCreate(498.000000, 118.000000, tds);
TextDrawShowForPlayer(playerid, Textdraw1[playerid]);
warning 213: tag mismatch
warning 213: tag mismatch
warning 213: tag mismatch
warning 203: symbol is never used: "tdscore"
Thanks for help.