SA-MP Forums Archive
Argument mismatch.. - 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: Argument mismatch.. (/showthread.php?tid=66851)



Argument mismatch.. - the_driver - 24.02.2009

Ok you are all going to laugh @ me but here is the problem:
script:
Код:
public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerInterior(playerid,14);
	SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
	SetPlayerFacingAngle(playerid, 270.0);
	SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
	SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
	gClass[playerid] = classid;
 	{
	 	if (classid == 0)
	 	{
				GameTextForPlayer(playerid,3500,6, "Grove");
		}
	}
	return 1;
}
Now the error is:
Код:
samp02Xserver.win32\freeroam.pwn(418) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
the error is in this line:
Код:
				GameTextForPlayer(playerid, 3500, 6, "Grove");
I dont know what i do wrong..
Thanks


Re: Argument mismatch.. - [RP]Rav - 24.02.2009

the correct syntax is:
pawn Код:
GameTextForPlayer(playerid, const string[], time, style)
and you made it
pawn Код:
GameTextForPlayer(playerid, time, style, const string[])