Why are you doing this?
PHP код:
SendClientMessage(playerid, -1, ""COLOR_RED"Nie wszedles do domu");
and not this
PHP код:
SendClientMessage(playerid, -1, COLOR_RED, "Nie wszedles do domu");
And try this:
PHP код:
CMD:wejdz(playerid,params[])
{
new hID = GetHouseOutID(playerid);
if(hID == -255)
{
SendClientMessage(playerid, -1, ""COLOR_RED"Nie jestes w poblizu domu");
}
else {
if(House[hID][hOwned] == 0)
{
SendClientMessage(playerid, -1, ""COLOR_RED"Nie mozesz wejsc do domu bez wlasciciela komenda wejdz");
}
else {
new name[24];
GetPlayerName(playerid,name,24);
if(!strcmp(House[hID][hOwner],name,false))
{
goto somewhere;
}
else if(House[hID][hLocked] == 1)
{
SendClientMessage(playerid, -1, ""COLOR_RED"Nie mozesz wejsc do domu jest zamkniety");
}
somewhere:
SetPlayerInterior(playerid, House[hID][hInInt]);
SetPlayerVirtualWorld(playerid, House[hID][hInVW]);
SetPlayerPos(playerid, House[hID][hInX], House[hID][hInY], House[hID][hInZ]);
}
}
return 1;
}
CMD:wyjdz(playerid,params[])
{
new hID = GetHouseInID(playerid);
if(hID == -255)
{
SendClientMessage(playerid, -1, ""COLOR_RED"Nie wszedles do domu");
return 1;
}
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerPos(playerid,House[hID][hOutX],House[hID][hOutY],House[hID][hOutZ]);
return 1;
}