25.04.2011, 13:15
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;
}


is :