21.10.2009, 18:23
You have two brackets ( { ) before you start the code.Delete one. And you have two brackets ( } ) after return.
So final code looks
EDIT: Don, we was writing in same time.
So final code looks
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 222.1653,1823.0802,6.4141);
SetPlayerFacingAngle(playerid, 269.1334);
SetPlayerCameraPos(playerid, 224.1104,1823.0507,6.4141);
SetPlayerCameraLookAt(playerid, 222.1653,1823.0802,6.4141);
gClass[playerid] = classid;
return 1;
}