[help] error 033 - I haven't found by searching
#1

pawn Код:
if(Tags[playerid] != "<none>") { // error line :o
                new tagname[30], nameold[30];
                GetPlayerName(playerid,nameold,sizeof(nameold));
                format(tagname,sizeof(tagname),"%s%s",Tags[playerid],nameold);
            }
Umm error line is commented.

Creating of Tags:
pawn Код:
new Tags[MAX_PLAYERS][10];
Any ideas?

edit: before you rewrite my code, I need only 2 lines. the statement in if() or the creation
Reply
#2

oh my god, nobody can solve this?
Reply
#3

You can't compare strings like that.

pawn Код:
if(strcmp(Tags[playerid], "<none>") != 0)
{
    new tagname[30], nameold[30];
    GetPlayerName(playerid,nameold,sizeof(nameold));
    format(tagname,sizeof(tagname),"%s%s",Tags[playerid],nameold);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)