20.08.2015, 23:09
So .. I came back again on forums ask a little bit of help from you guys
when I type
/entersafe it says Uknknown Command and it complie good
no errors
(I use the right pawno to compie it)
but still problems
when I type
/entersafe it says Uknknown Command and it complie good
no errors
(I use the right pawno to compie it)
but still problems
pawn Код:
dcmd_entersafe(playerid,params[])
{
#pragma unused params
new str4[255],shousenumber;
shousenumber = GetSafeHouseID(playerid);
GetPlayerPos(playerid, shousex, shousey, shousez);
format(str4, sizeof(str4), "Houses/shouseid%d", shousenumber);
playerworld[playerid] = GetPlayerVirtualWorld(playerid);
SendClientMessage(playerid, c_y, "You entered the Safe house!");
SetPlayerVirtualWorld(playerid, shInfo[shousenumber][sVirtualworld]);
SetPlayerInterior(playerid, shInfo[shousenumber][sInterior]);
SetPlayerPos(playerid, shInfo[shousenumber][sInteriorX], shInfo[shousenumber][sInteriorY], shInfo[shousenumber][sInteriorZ]);
playerinterior[playerid] = shInfo[shousenumber][sInterior];
return 1;
}
dcmd_exitsafe(playerid,params[])
{
#pragma unused params
if(GetPlayerInterior(playerid)==splayerinterior[playerid])
{
SetPlayerPos(playerid, shousex, shousey, shousez);
SetPlayerInterior(playerid, splayerworld[playerid]);
}
else
{
SendClientMessage(playerid, c_r, "You have not entered a house!");
}
return 1;
}