15.08.2012, 12:54
pawn Code:
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;
}
public OnPlayerConnect(playerid)
{
new tds[128];
format(tds, sizeof(tds), "Score:%d",GetPlayerScore(playerid));
Textdraw1[playerid] = TextDrawCreate(498.000000, 118.000000, tds);
TextDrawShowForPlayer(playerid, Textdraw1[playerid]);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
TextDrawDestroy(Textdraw1[playerid]);
return 1;
}
public OnGameModeInit()
{
SetTimer("tdscoretimer", 5000, true);
return 1;
}
pawn Code:
C:\Documents and Settings\Gaber\Desktop\My Samp Server\gamemodes\SFCRRPG.pwn(2674) : warning 213: tag mismatch
C:\Documents and Settings\Gaber\Desktop\My Samp Server\gamemodes\SFCRRPG.pwn(2675) : warning 213: tag mismatch
C:\Documents and Settings\Gaber\Desktop\My Samp Server\gamemodes\SFCRRPG.pwn(2751) : warning 213: tag mismatch
C:\Documents and Settings\Gaber\Desktop\My Samp Server\gamemodes\SFCRRPG.pwn(10217) : warning 213: tag mismatch
C:\Documents and Settings\Gaber\Desktop\My Samp Server\gamemodes\SFCRRPG.pwn(17017) : warning 203: symbol is never used: "tdscore"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Warnings.
pawn Code:
Textdraw1[playerid] = TextDrawCreate(498.000000, 118.000000, tds);
pawn Code:
TextDrawShowForPlayer(playerid, Textdraw1[playerid]);
pawn Code:
TextDrawDestroy(Textdraw1[playerid]);
pawn Code:
TextDrawSetString(Textdraw1[i], tds);
pawn Code:
not even in the script! wtf? maximum is 17016