28.10.2010, 20:21
you're making it on every classid you should do it like that:
public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
case 1:
{
//SetPlayerPos
//SetPlayerCameraPos
//SetPlayerCameraLookAt
}
case 2:
{
//SetPlayerPos
//SetPlayerCameraPos
//SetPlayerCameraLookAt
}
}
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
case 1:
{
//SetPlayerPos
//SetPlayerCameraPos
//SetPlayerCameraLookAt
}
case 2:
{
//SetPlayerPos
//SetPlayerCameraPos
//SetPlayerCameraLookAt
}
}
return 1;
}