ForceClassSelection not working?
#1

Код:
forward switcher(playerid);
public switcher(playerid)
{
switch (Mode[playerid])
{
case 1:
{
Mode[playerid] = 2;
print("MODE SWITCHED to 1");
}
case 2:
{
Mode[playerid] = 1;
print("MODE SWITCHED to 2");
}
default: Mode[playerid] = 1;
}
print("Class selection");
return ForceClassSelection(playerid);}
ok, so this is a switch that moves the modes back and forth on a timer, but i want it to forceclassselection after it switchs, so far it doesnt. D: any idea?
Reply
#2

pawn Код:
forward switcher(playerid);
public switcher(playerid)
{
    switch(Mode[playerid])
    {
        case 1:
        {
            Mode[playerid] = 2;
            print("MODE SWITCHED to 1");
        }
        case 2:
        {
            Mode[playerid] = 1;
            print("MODE SWITCHED to 2");
        }
        default: Mode[playerid] = 1;
    }
    print("Class selection");
    return ForceClassSelection(playerid), SetPlayerHealth(playerid, 0.0);
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)