ForceClassSelection not working? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: ForceClassSelection not working? (
/showthread.php?tid=187760)
ForceClassSelection not working? -
-Rebel Son- - 04.11.2010
Код:
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?
Re: ForceClassSelection not working? -
The_Moddler - 04.11.2010
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);
}