Not spawn in interior.
#1

Hello all, i have trouble. Player doesn't spawn in interior in this code. When code was complete, i type command /deb and interior appears .Help please

PHP код:
if(GetPVarInt(playerid,"skinfunc") == 1)
    {
        
SetPlayerVirtualWorld(playerid,world);
        ++
world;
        
TextDrawShowForPlayer(playerid,uplineskin1[playerid]);
        
TextDrawShowForPlayer(playerid,bottomlineskin1[playerid]);
        
TextDrawShowForPlayer(playerid,SelectYourSkin[playerid]);
        
TextDrawShowForPlayer(playerid,Prev[playerid]);
        
TextDrawShowForPlayer(playerid,Next[playerid]);
        
TextDrawShowForPlayer(playerid,Textdraw0[playerid]);
        
SetPlayerPos(playerid,-1827.147338,7.207418,1061.143554);
        
SetPlayerInterior(playerid,14);
        
TextDrawShowForPlayer(playerid,Accept[playerid]);
        
SelectTextDraw(playerid,0x00FF00FF);
        
SetPlayerSkin(playerid,1);
        
SetPlayerCameraPos(playerid,-1832.84545811.3173651062.743408);
        
SetPlayerCameraLookAt(playerid,-1832.91467216.2531431061.947631);
        
TogglePlayerControllable(playerid,false);
    } 
PHP код:
if(!strcmp(cmdtext"/deb"true))
    {
        
SetPlayerPos(playerid,-1827.147338,7.207418,1061.143554);
        
SetPlayerInterior(playerid,14);
    } 
Reply
#2

Try like this
Код:
if(GetPVarInt(playerid,"skinfunc") == 1) 
    { 
        TextDrawShowForPlayer(playerid,uplineskin1[playerid]); 
        TextDrawShowForPlayer(playerid,bottomlineskin1[playerid]); 
        TextDrawShowForPlayer(playerid,SelectYourSkin[playerid]); 
        TextDrawShowForPlayer(playerid,Prev[playerid]); 
        TextDrawShowForPlayer(playerid,Next[playerid]); 
        TextDrawShowForPlayer(playerid,Textdraw0[playerid]); 
        SetPlayerInterior(playerid,14);
        SetPlayerPos(playerid,-1827.147338,7.207418,1061.143554); 
        TextDrawShowForPlayer(playerid,Accept[playerid]); 
        SelectTextDraw(playerid,0x00FF00FF); 
        SetPlayerSkin(playerid,1); 
        SetPlayerCameraPos(playerid,-1832.845458, 11.317365, 1062.743408); 
        SetPlayerCameraLookAt(playerid,-1832.914672, 16.253143, 1061.947631); 
        TogglePlayerControllable(playerid,false); 
    }
Reply
#3

Not work!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)