changeskin?
#6

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

PHP код:
new PlayerClass[MAX_PLAYERS]; 
Saving the class:

PHP код:
public OnPlayerRequestClass(playerid,classid)
{
    
PlayerClass[playerid] = classid;

Using in your switch (create local variable classid and read from the array):

PHP код:
new classid PlayerClass[Playerid];
 
switch(
classid)
{
    case 
0,1,2,3://GROVE 
        

            if(
classid == || classid == || classid == 2
            { 
                
ShowModelSelectionMenu(playeridskingrove"Select skin for grove"); 
            } 
        }

Hope this helps
Reply


Messages In This Thread
changeskin? - by N0FeaR - 08.12.2015, 21:22
Re: changeskin? - by Kevln - 08.12.2015, 21:25
Re: changeskin? - by N0FeaR - 08.12.2015, 21:29
Re: changeskin? - by N0FeaR - 08.12.2015, 21:31
Re: changeskin? - by Kevln - 08.12.2015, 21:35
Re: changeskin? - by Nate4 - 09.12.2015, 01:23
Re: changeskin? - by Sew_Sumi - 09.12.2015, 01:36

Forum Jump:


Users browsing this thread: 1 Guest(s)