warning 213: tag mis match
#1

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.
line 2674:
pawn Code:
Textdraw1[playerid] = TextDrawCreate(498.000000, 118.000000, tds);
line 2675:
pawn Code:
TextDrawShowForPlayer(playerid, Textdraw1[playerid]);
line 2751:
pawn Code:
TextDrawDestroy(Textdraw1[playerid]);
line 10217:
pawn Code:
TextDrawSetString(Textdraw1[i], tds);
line 17017:
pawn Code:
not even in the script! wtf? maximum is 17016
Reply
#2

don't write it like
PHP Code:
Textdraw1[i
write it like
PHP Code:
Text:Textdraw[i
Change all of them and add
PHP Code:
Text
infront of them.
Reply
#3

Quote:
Originally Posted by TaLhA XIV
View Post
don't write it like
PHP Code:
Textdraw1[i
write it like
PHP Code:
Text:Textdraw[i
Change all of them and add
PHP Code:
Text
infront of them.
pawn 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.
:S
Reply
#4

any one else can help?
Reply
#5

See your PM
Reply
#6

done bro ur the best <3
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)