SA-MP Forums Archive
Helo witth PPC_Housing - 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)
+--- Thread: Helo witth PPC_Housing (/showthread.php?tid=580605)



Helo witth PPC_Housing - itachi - 06.07.2015

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


Re: Helo witth PPC_Housing - kalanerik99 - 06.07.2015

Код:
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?


Re: Helo witth PPC_Housing - TomatoRage - 06.07.2015

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;
}