SA-MP Forums Archive
Im haveing a big promblem with my /setint command - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Im haveing a big promblem with my /setint command (/showthread.php?tid=80738)



Im haveing a big promblem with my /setint command - Chea - 06.06.2009

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



Re: Im haveing a big promblem with my /setint command - Donny_k - 06.06.2009

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


Re: Im haveing a big promblem with my /setint command - Chea - 06.06.2009

Can i get a example with my command please


Re: Im haveing a big promblem with my /setint command - efeX - 06.06.2009

SetPlayerPos
right after you set the interior.