Im haveing a big promblem with my /setint command
#1

I have the /setint command to change the house interior but when i do /setint to interior 8 or any number the house interior is fully white and u cant see the interior can you please tell me what i did wrong on this command

//----------------------------------[SETINT]-----------------------------------------------
if(strcmp(cmd, "/setint", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /setint [interiorid]");
return 1;
}
new intid;
intid = strval(tmp);
if (PlayerInfo[playerid][pAdmin] >= 1)
{
SetPlayerInterior(playerid,intid);
PlayerInfo[playerid][pInt] = intid;
format(string, sizeof(string), " interiorid %d.", intid);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You are not authorized to use that command !");
}
}
return 1;
}



Thanks
Reply
#2

You don't set a position so the interior you are in (at your position) stops getting drawn.
Reply
#3

Can i get a example with my command please
Reply
#4

SetPlayerPos
right after you set the interior.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)