plS help [error/bug]
#2

PHP код:
public OnPlayerRequestClass(PIDclassid

    if (!
GetPVarInt(playerid"LoggedIn")) 
    {     
        if(
IsPlayerNPC(PID)) return 1
        
PlayerTextDrawShow(PID,Textdraw0); 
        
PlayerTextDrawShow(PID,Textdraw1); 
        
PlayerTextDrawShow(PID,Textdraw2); 
        
PlayerTextDrawShow(PID,Textdraw3); 
        if(
gPlayerHasCitySelected[PID]) { 
            
ClassSel_SetupCharSelection(PID); 
            if(
gPlayerCitySelection[PID] == CITY_LOS_SANTOS
            { 
                new 
string[250]; 
                
format(string,sizeof(string),"City: ~y~Las Venturas~n~~w~~h~Skin: ~y~%d",GetPlayerSkin(PID)); 
                
PlayerTextDrawSetString(PID,Textdraw3,string); 
                
ApplyAnimation (PID"ON_LOOKERS""Wave_loop"111100); 
            } 
            else if(
gPlayerCitySelection[PID] == CITY_LAS_VENTURAS
            { 
                new 
string[250]; 
                
format(string,sizeof(string),"City: ~y~Las Venturas~n~~w~~h~Skin: ~y~%d",GetPlayerSkin(PID)); 
                
PlayerTextDrawSetString(PID,Textdraw3,string); 
                
ApplyAnimation (PID"ON_LOOKERS""Wave_loop"111100); 
            } 
            else if(
gPlayerCitySelection[PID] == CITY_SAN_FIERRO
            { 
                new 
string[250]; 
                
format(string,sizeof(string),"City: ~y~San Fierro~n~~w~~h~Skin: ~y~%d",GetPlayerSkin(PID)); 
                
PlayerTextDrawSetString(PID,Textdraw3,string); 
                
ApplyAnimation (PID"ON_LOOKERS""Wave_loop"111100); 
            } 
            return 
1
        } else { 
            if(
GetPlayerState(PID) != PLAYER_STATE_SPECTATING) { 
                
TogglePlayerSpectating(PID,1); 
                
gPlayerCitySelection[PID] = -1
            } 
          } 
          return 
1;
    } 
    return 
0

Try it like this
Reply


Messages In This Thread
plS help [error/bug] - by asri - 22.09.2017, 17:28
Re: plS help [error/bug] - by Swankeh - 22.09.2017, 17:42
Re: plS help [error/bug] - by asri - 23.09.2017, 05:31
Re: plS help [error/bug] - by asri - 23.09.2017, 14:17
Re: plS help [error/bug] - by vishnusubhashmohan - 23.09.2017, 14:24
Re: plS help [error/bug] - by asri - 24.09.2017, 09:33
Re: plS help [error/bug] - by Zeth - 24.09.2017, 09:39
test forum sorry - by Thomson404 - 24.09.2017, 09:40
Re: test forum sorry - by Zeth - 24.09.2017, 09:43
Re: plS help [error/bug] - by asri - 03.10.2017, 01:42

Forum Jump:


Users browsing this thread: 2 Guest(s)