20.08.2012, 20:09
Vc definiu o valor?
exp:
Um exemplo de uso de classid:
exp:
pawn Код:
#define DIALOG_LOGAR 1
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 2074.3289,1924.5944,14.3246);
SetPlayerCameraPos(playerid, 2078.3647,1923.4133,13.3281);
SetPlayerCameraLookAt(playerid, 2074.3289,1924.5944,14.3246);
SetPlayerFacingAngle(playerid, 252.4539);
if((classid >= 0) && (classid <= 2))
{
gTeam[playerid] = Aztecas;
GameTextForPlayer(playerid,"~n~~n~~n~~b~Aztecas",4000,5);
}
if((classid >= 3) && (classid <= 5))
{
gTeam[playerid] = Grove;
GameTextForPlayer(playerid,"~n~~n~~n~~g~Grove",4000,5);
}
if((classid >= 6) && (classid <= 8))
{
gTeam[playerid] = Ballas;
GameTextForPlayer(playerid,"~n~~n~~n~~g~Ballas",4000,5);
}
return 1;
}