Error : "argument type mismatch (argument 2" -
NiclasStrand - 10.03.2013
public OnPlayerConnect(playerid)
{
GameTextForPlayer(playerid, COLOR_RED, "~w~ Welcome to skiilboyyz server",3000,4);
return 1;
}
I got the error 035: argument type mismatch (argument 2)
Re: Error : "argument type mismatch (argument 2" -
Mitchy - 10.03.2013
i dont get it, you did COLOR_RED and ~w~.
Delete the ~w~
Respuesta: Error : "argument type mismatch (argument 2" -
CrossOv3r - 10.03.2013
pawn Код:
public OnPlayerConnect(playerid)
{
GameTextForPlayer(playerid,"~w~ Welcome to skiilboyyz server",3000,4);
return 1;
}
Re: Error : "argument type mismatch (argument 2" -
NiclasStrand - 10.03.2013
I got the same error again
GameTextForPlayer(playerid, COLOR_RED, "Welcome to skiilboyyz server",3000,4);
Re: Respuesta: Error : "argument type mismatch (argument 2" -
NiclasStrand - 10.03.2013
Thanks

Now it works
AW: Re: Error : "argument type mismatch (argument 2" -
ulbi1990 - 10.03.2013
Quote:
Originally Posted by NiclasStrand
I got the same error again
GameTextForPlayer(playerid, COLOR_RED, "Welcome to skiilboyyz server",3000,4);
|
Because there isn't any parameter to set a color...
pawn Код:
GameTextForPlayer(playerid, const string[], time, style);
^You see there anything where you can set a color??
CrossOv3r already showed the correct way.
Re: Error : "argument type mismatch (argument 2" - Patrick - 10.03.2013
Try this code
pawn Код:
public OnPlayerConnect(playerid)
{
//Parameters: GameTextForPlayer(playerid, const string[], time, style);
GameTextForPlayer(playerid, "~w~ Welcome to skiilboyyz server",3000,4);
return 1;
}
Re: Error : "argument type mismatch (argument 2" -
Mitchy - 10.03.2013
Make sure you had defined COLOR_RED so the script is informed of it being defined(so theres no errors)
For example:
#define COLOR_RED 0xAA3333AA
Re: Error : "argument type mismatch (argument 2" - Patrick - 10.03.2013
Mitchy your wrong. but as GameText doesn't use any color define or something.
Gametext uses that color stuff below.
pawn Код:
~n~ New line
~r~ Red
~g~ Green
~b~ Blue
~w~ White
~y~ Yellow
~p~ Purple
~l~ Black
For more information about it read this
https://sampwiki.blast.hk/wiki/GameTextStyle
https://sampwiki.blast.hk/wiki/GameTextForPlayer
Re: Error : "argument type mismatch (argument 2" -
Mitchy - 10.03.2013
My bad (Still a little new to GameText)