error 035: argument type mismatch (argument 2)
#1

pawn Код:
TextSet(Text:FNC, const b[], const e[])
{
     foreach(Player, i)
     {
        if(LANGUAGE[i] == 1) // balkan
        {
            TextDrawSetString(Text:FNC, b); // error line
            return true;
        }
        else if(LANGUAGE[i] == 2) // english
        {
            TextDrawSetString(Text:FNC, e); // error line
            return true;
        }
     }
     return true;
}
And When i Use

pawn Код:
TextSet(LittleStats[playerid],"VOLIM TE!","I LOVE YOU!");
I get this errors:

PHP код:

 error 035
argument type mismatch (argument 2)
error 035argument type mismatch (argument 2)
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
2 Errors

Reply
#2

Hmm... Mismatches anywhere?
Reply
#3

Use 'balcan' not 'b' ?
Reply
#4

it's not problem in that...i paste wrong code, fix:

pawn Код:
TextSet(Text:FNC, const b[], const e[])
{
     foreach(Player, i)
     {
        if(PLAYER_JEZIK[i] == 1) // balkan
        {
            TextDrawSetString(Text:FNC, b);
            return true;
        }
        else if(PLAYER_JEZIK[i] == 2) // english
        {
            TextDrawSetString(Text:FNC, e);
            return true;
        }
     }
     return true;
}
Reply
#5

Remove const
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)