09.12.2015, 01:23
Yea as KevLn said - that variable doesn't exist within the command.
You'll have to save the class ID into an array when the player chooses class, then use that value later
E.g.
New array
Saving the class:
Using in your switch (create local variable classid and read from the array):
Hope this helps
You'll have to save the class ID into an array when the player chooses class, then use that value later
E.g.
New array
PHP код:
new PlayerClass[MAX_PLAYERS];
PHP код:
public OnPlayerRequestClass(playerid,classid)
{
PlayerClass[playerid] = classid;
}
PHP код:
new classid = PlayerClass[Playerid];
switch(classid)
{
case 0,1,2,3://GROVE
{
if(classid == 0 || classid == 1 || classid == 2)
{
ShowModelSelectionMenu(playerid, skingrove, "Select skin for grove");
}
}
}