Just a little push....
#1

This is my OnPlayerRequestClass part... I want it to skip class selection if the file exists, it get an error in compiling... help WHAT AM I DOING WRONG??

Код:
public OnPlayerRequestClass(playerid, classid)
{
	new File[50];
	format(File, sizeof(File), PFiles, pName(playerid));
	if(fexist(File))
	{
	SetPlayerPos(playerid, PVar[playerid][pLastX], PVar[playerid][pLastY], PVar[playerid][pLastZ]);
	SendClientMessage(playerid, COLOR_RED, "xD");
 	}
	else
	{
 	SetPlayerPos(playerid, -2661.3604, 1932.9404, 225.7578);
	SetPlayerFacingAngle(playerid, 213.0498);

	SetPlayerCameraPos(playerid, -2659.3604, 1906.9404, 226.7578);
	SetPlayerCameraLookAt(playerid, -2661.3604, 1932.9404, 225.7578);
	}
	return 1;
}
Reply


Messages In This Thread
Just a little push.... - by [JnA]DukeNukem - 25.04.2011, 13:15
Re: Just a little push.... - by Ash. - 25.04.2011, 13:22
Re: Just a little push.... - by Lorenc_ - 25.04.2011, 13:22
Re: Just a little push.... - by [JnA]DukeNukem - 25.04.2011, 13:27
Re: Just a little push.... - by Lorenc_ - 25.04.2011, 13:35
Re: Just a little push.... - by [JnA]DukeNukem - 25.04.2011, 13:39
Re: Just a little push.... - by Lorenc_ - 25.04.2011, 23:52

Forum Jump:


Users browsing this thread: 1 Guest(s)