/home error
#4

Try this =)


Код:
   if( strcmp(cmdtext,"/home",true )== 0)
	    {
		new name[24];
		GetPlayerName(playerid,name,24);
		if(strcmp(name, "Michael", false) == 0)
 		{
        SetPlayerPos(playerid, 2503.489014, -7967.976074, 1.326540);
        SetPlayerInterior(playerid, Here the number ) 
        //In houses the interior is different but when you aren't in a house or building it is always 0
        //when you want to get the interior of the house go in it and type /interior 
		return 1;
		}
        else if(strcmp(name,"Joe",false) == 0)
        {
        SetPlayerPos(playerid,blablabla);
        SetPlayerInterior(playerid,blablabla);
        }
        else 
        {
        //what to do with gusy that haven't a name like micheal or joe ? 
        //maybe:
        SendClientMessage(playerid,COLOR_RED,"You aren't allowed to use this command!");
        }
        return 1;
    }
PS: You forgot a } (that gives loooots of errors) and also you didn't set Interior.... maybe the command had worked with the }
but you only would have seen your player..nothing more....
So for teleport always use: SetPlayerInterior(playerid, Interior);..
Hope it works =)


Bearfist
Reply


Messages In This Thread
/home error - by JoeDaDude - 28.04.2009, 13:40
Re: /home error - by shitbird - 28.04.2009, 13:42
Re: /home error - by JoeDaDude - 28.04.2009, 13:43
Re: /home error - by Bearfist - 28.04.2009, 14:08

Forum Jump:


Users browsing this thread: 2 Guest(s)