12.04.2012, 16:02
GetPlayerJobID? You must be talking shit. Also you're using 'cases' and you haven't even used switch?
You got to do it like this
You got to do it like this
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
switch(classid)
{
case 0, 1: // Class the player is currently seeing is ID 0 (Citizen) or ID 1 (Citizen)
{
GameTextForPlayer(playerid,"Citizen",50000,3);
}
case 2, 3: // Class the player is currently seeing is ID 2 (Cop) or ID 3 (Cop)
{
GameTextForPlayer(playerid,"Cop",50000,3);
}
case 4: // Class the player is currently seeing is ID 4 (Criminal)
{
GameTextForPlayer(playerid,"Citizen",50000,3);
}
}
return 1;
}