05.08.2013, 09:55
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.845458, 11.317365, 1062.743408);
SetPlayerCameraLookAt(playerid,-1832.914672, 16.253143, 1061.947631);
TogglePlayerControllable(playerid,false);
}
PHP код:
if(!strcmp(cmdtext, "/deb", true))
{
SetPlayerPos(playerid,-1827.147338,7.207418,1061.143554);
SetPlayerInterior(playerid,14);
}