/dviewinterior
#1

So my friend made a viewinterior command awhile back for admins, and im trying to edit it for Senior+ developers in game.
Код:
 CMD:dviewinterior(playerid, params[])
{
    if(PlayerInfo[playerid][pDev] >=2)
    {
		new interiorid;
		if(sscanf(params, "i", interiorid)) return SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /viewinterior [id]");
        SetPlayerHouseInterior(playerid, interiorid);
	}
    return 1;
}
is how I have it written right now, but it never works in game for senior developers. I have senior developer = 2. Any suggestions/help?
Reply
#2

Don't you need to do
pawn Код:
if(!sscanf(params,"i",interiorid)) SetPlayerHouseInterior(playerid,interiorid);
If not, show us your the enum being used by PlayerInfo.
Reply
#3

Did it work before you made it set the senior dev? Cause you might have set yourself to 1 by accident?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)