Helo witth PPC_Housing
#1

Hello.
I make skin changer to PPC_Housing,but not function..

code :
Quote:

COMMANDetskin(playerid, params[])
{
new HouseID;

// Let the player know that this house isn't open to the public and he can't enter it
if (House_PlayerIsOwner(playerid, HouseID) == 1)
{
ShowPlayerDialog(playerid, DialogSkin, DIALOG_STYLE_INPUT, "House Skin", "{B7FF00} Please write {F81414} ID {B7FF00} skin", "OK", "Cancel");
}
else
SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}You are not Owner");
return 1;
}

error :
I connect to server and send command /setskin ,but write to me SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}You are not Owner");

Please help me
Reply
#2

Код:
COMMAND:setskin(playerid, params[])
{
new HouseID;
if (House_PlayerIsOwner(playerid, HouseID) == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}You are not Owner");
ShowPlayerDialog(playerid, DialogSkin, DIALOG_STYLE_INPUT, "House Skin", "{B7FF00} Please write {F81414} ID {B7FF00} skin", "OK", "Cancel");
return 1;
}
Try now?
Reply
#3

try return
pawn Код:
COMMAND:setskin(playerid, params[])
{
new HouseID;

// Let the player know that this house isn't open to the public and he can't enter it
if (House_PlayerIsOwner(playerid, HouseID) == 1)
{
ShowPlayerDialog(playerid, DialogSkin, DIALOG_STYLE_INPUT, "House Skin", "{B7FF00} Please write {F81414} ID {B7FF00} skin", "OK", "Cancel");
return 1;
}
else
SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}You are not Owner");
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)