Argument mismatch..
#1

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
Reply
#2

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


Forum Jump:


Users browsing this thread: 1 Guest(s)