Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

I'm having an error

$
0
0
My Gamemode can give characters up to 2 homes. And I'm having problems with the "No command server."
Code:

CMD:furniture(playerid, params[])
{
    if(Homes[playerid] > 0)
        {
            if(MuaInt[playerid] == 0)
                {
                        if(IsPlayerInRangeOfPoint(playerid, 3.0, HouseInfo[PlayerInfo[playerid][pPhousekey]][hExteriorX], HouseInfo[PlayerInfo[playerid][pPhousekey]][hExteriorY], HouseInfo[PlayerInfo[playerid][pPhousekey]][hExteriorZ]))
                        {
                                MuaInt[playerid] = 1;
                                IntHouse[playerid] = 1;
                                SetPlayerPos(playerid,2496.0620,-1692.0900,1014.742187);
                                SetPlayerInterior(playerid,3);
                                SetPlayerVirtualWorld(playerid, HouseInfo[PlayerInfo[playerid][pPhousekey]][hIntVW]);
                                SendClientMessageEx(playerid, COLOR_WHITE, "HINT: Use /noithat [next or back] is change interior.");
                            SendClientMessageEx(playerid, COLOR_WHITE, "HINT: Use /buynoithat is buy interior.");
                            SendClientMessageEx(playerid, COLOR_WHITE, "HINT: Use /quitnoithat is exit funiture.");
                        }
                        else if(IsPlayerInRangeOfPoint(playerid, 3.0, HouseInfo[PlayerInfo[playerid][pPhousekey2]][hExteriorX], HouseInfo[PlayerInfo[playerid][pPhousekey2]][hExteriorY], HouseInfo[PlayerInfo[playerid][pPhousekey2]][hExteriorZ]))
                        {
                                MuaInt[playerid] = 1;
                                IntHouse[playerid] = 2;
                                SetPlayerPos(playerid,2496.0620,-1692.0900,1014.742187);
                                SetPlayerInterior(playerid,3);
                                SetPlayerVirtualWorld(playerid, HouseInfo[PlayerInfo[playerid][pPhousekey2]][hIntVW]);
                                SendClientMessageEx(playerid, COLOR_WHITE, "HINT: Use /noithat [next or back] is change interior.");
                            SendClientMessageEx(playerid, COLOR_WHITE, "HINT: Use /buynoithat is buy interior.");
                            SendClientMessageEx(playerid, COLOR_WHITE, "HINT: Use /quitnoithat is exit funiture.");
                        }
                }
                else
                {
                    SendClientMessageEx(playerid, COLOR_GREY, "You are looking at the interior.");
                }
        }
        else return SendClientMessageEx(playerid, COLOR_GREY, "You need to own a house.");
        return 1;
}

And I got an error when not standing near the venue.
When I was standing near everything was fine, but leaving it out, it left an error that "Command does not exist"
Please Help me.

My Bad English
I from Viet Nam

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>