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;
}
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.
Textdraw1[playerid] = TextDrawCreate(498.000000, 118.000000, tds);
TextDrawShowForPlayer(playerid, Textdraw1[playerid]);
TextDrawDestroy(Textdraw1[playerid]);
TextDrawSetString(Textdraw1[i], tds);
not even in the script! wtf? maximum is 17016
Textdraw1[i]
Text:Textdraw[i]
Text:
don't write it like
PHP Code:
PHP Code:
PHP Code:
|
C:\Documents and Settings\Gaber\Desktop\My Samp Server\gamemodes\SFCRRPG.pwn(2674) : warning 221: label name "Text" shadows tag name
C:\Documents and Settings\Gaber\Desktop\My Samp Server\gamemodes\SFCRRPG.pwn(2674) : warning 203: symbol is never used: "Text"
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
3 Warnings.