error 035: argument type mismatch (argument 2) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: error 035: argument type mismatch (argument 2) (
/showthread.php?tid=255909)
error 035: argument type mismatch (argument 2) -
[H]265 - 17.05.2011
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 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
Re: error 035: argument type mismatch (argument 2) -
lowrida018 - 17.05.2011
Hmm... Mismatches anywhere?
Re: error 035: argument type mismatch (argument 2) -
Jefff - 17.05.2011
Use 'balcan' not 'b' ?
Re: error 035: argument type mismatch (argument 2) -
[H]265 - 18.05.2011
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;
}
Re: error 035: argument type mismatch (argument 2) -
MadeMan - 18.05.2011
Remove
const