29.07.2016, 16:59
Hi guys,
So i made some changes to a command that opens the house door, and those changes simply add some exceptions to some house id's wich are apartments in wich the doors are going to really open. But it gives me streamer errors. I will post here the script and the errors that i get:
here are the errors (PS: These exact errors only show to me when somethings not closed with } and i cant find anything that isnt. Maybe because im tired or because im blind but i just cant find any.)
EDIT: I know its from this command the errors because i have put it between /* */ compiled and it worked.
So i made some changes to a command that opens the house door, and those changes simply add some exceptions to some house id's wich are apartments in wich the doors are going to really open. But it gives me streamer errors. I will post here the script and the errors that i get:
PHP код:
if(strcmp(cmd, "/abrircasa", true) == 0)
{
if(IsPlayerConnected(playerid))
{
for(new i = 0; i < sizeof(Houses); i++)
{
if(i != 172 && i != 173 && i != 174 && i != 175 && i != 176 && i != 177 && i != 178 && i != 179 && i != 180 && i != 181 && i != 182 && i != 183 && i != 184 && i != 185 && i != 186 && i != 187 && i != 188 && i != 189 && i != 190)
{
if (PlayerToPoint(3.0, playerid,Houses[i][EnterX], Houses[i][EnterY], Houses[i][EnterZ]) || PlayerToPoint(3.0, playerid,Houses[i][ExitX], Houses[i][ExitY], Houses[i][ExitZ]))
{
if(PlayerInfo[playerid][pHouseKey] == i)
{
if(Houses[i][Locked] == 1)
{
Houses[i][Locked] = 0;
SendClientMessage(playerid, COLOR_WHITE,"{1E90FF}[INFO]: {FFFFFF} Porta Destrancada.");
PlayerActionMessage(playerid,15.0,"meteu a chave na porta e destrancou-a.");
SaveHouses();
return 1;
}
if(Houses[i][Locked] == 0)
{
Houses[i][Locked] = 1;
SendClientMessage(playerid, COLOR_WHITE,"{1E90FF}[INFO]: {FFFFFF} Porta Trancada.");
PlayerActionMessage(playerid,15.0,"meteu a chave na porta e trancou-a.");
SaveHouses();
return 1;
}
}
}
}
else
{
if(i == 172)
{
if (PlayerToPoint(3.0, playerid,Houses[i][EnterX], Houses[i][EnterY], Houses[i][EnterZ]) || PlayerToPoint(3.0, playerid,Houses[i][ExitX], Houses[i][ExitY], Houses[i][ExitZ]))
{
if(PlayerInfo[playerid][pHouseKey] == i)
{
if(Houses[i][Locked] == 1)
{
Houses[i][Locked] = 0;
SendClientMessage(playerid, COLOR_WHITE,"{1E90FF}[INFO]: {FFFFFF} Porta Destrancada e aberta.");
PlayerActionMessage(playerid,15.0,"meteu a chave na porta, destrancou-a e abriu-a.");
MoveDynamicObject(porta1piso1, 1494.33508, -105.28126, 51.68627,2.0, 0.00000, 0.00000,153.47997);
MoveDynamicObject(porta2piso1,1497.14600, -102.50519, 51.68627,2.0, 0.00000, 0.00000,138.47989);
SaveHouses();
return 1;
}
if(Houses[i][Locked] == 0)
{
Houses[i][Locked] = 1;
SendClientMessage(playerid, COLOR_WHITE,"{1E90FF}[INFO]: {FFFFFF} Porta Trancada e fechada.");
PlayerActionMessage(playerid,15.0,"meteu a chave na porta, trancou-a e fechou-a.");
MoveDynamicObject(porta1piso1, 1494.33508, -105.28126, 51.68627,2.0, 0.00000, 0.00000, 55.79999);
MoveDynamicObject(porta2piso1,1497.14600, -102.50519, 51.68627,2.0, 0.00000, 0.00000, 235.19994);
SaveHouses();
return 1;
}
}
}
}
else if(i == 173)
{
if (PlayerToPoint(3.0, playerid,Houses[i][EnterX], Houses[i][EnterY], Houses[i][EnterZ]) || PlayerToPoint(3.0, playerid,Houses[i][ExitX], Houses[i][ExitY], Houses[i][ExitZ]))
{
if(PlayerInfo[playerid][pHouseKey] == i)
{
if(Houses[i][Locked] == 1)
{
Houses[i][Locked] = 0;
SendClientMessage(playerid, COLOR_WHITE,"{1E90FF}[INFO]: {FFFFFF} Porta Destrancada e aberta.");
PlayerActionMessage(playerid,15.0,"meteu a chave na porta, destrancou-a e abriu-a.");
MoveDynamicObject(porta1piso1, 1494.33508, -105.28126, 57.12576,2.0, 0.00000, 0.00000,153.47997);
MoveDynamicObject(porta2piso1,1497.14600, -102.50519, 57.12576,2.0, 0.00000, 0.00000,138.47989);
SaveHouses();
return 1;
}
if(Houses[i][Locked] == 0)
{
Houses[i][Locked] = 1;
SendClientMessage(playerid, COLOR_WHITE,"{1E90FF}[INFO]: {FFFFFF} Porta Trancada e fechada.");
PlayerActionMessage(playerid,15.0,"meteu a chave na porta, trancou-a e fechou-a.");
MoveDynamicObject(porta1piso1, 1494.33508, -105.28126, 57.12576,2.0, 0.00000, 0.00000, 55.79999);
MoveDynamicObject(porta2piso1,1497.14600, -102.50519, 57.12576,2.0, 0.00000, 0.00000, 235.19994);
SaveHouses();
return 1;
}
}
}
}
else if(i == 174)
{
if (PlayerToPoint(3.0, playerid,Houses[i][EnterX], Houses[i][EnterY], Houses[i][EnterZ]) || PlayerToPoint(3.0, playerid,Houses[i][ExitX], Houses[i][ExitY], Houses[i][ExitZ]))
{
if(PlayerInfo[playerid][pHouseKey] == i)
{
if(Houses[i][Locked] == 1)
{
Houses[i][Locked] = 0;
SendClientMessage(playerid, COLOR_WHITE,"{1E90FF}[INFO]: {FFFFFF} Porta Destrancada e aberta.");
PlayerActionMessage(playerid,15.0,"meteu a chave na porta, destrancou-a e abriu-a.");
MoveDynamicObject(porta1piso1, 1494.33508, -105.28126, 62.58656,2.0, 0.00000, 0.00000,153.47997);
MoveDynamicObject(porta2piso1,1497.14600, -102.50519, 62.58656,2.0, 0.00000, 0.00000,138.47989);
SaveHouses();
return 1;
}
if(Houses[i][Locked] == 0)
{
Houses[i][Locked] = 1;
SendClientMessage(playerid, COLOR_WHITE,"{1E90FF}[INFO]: {FFFFFF} Porta Trancada e fechada.");
PlayerActionMessage(playerid,15.0,"meteu a chave na porta, trancou-a e fechou-a.");
MoveDynamicObject(porta1piso1, 1494.33508, -105.28126, 62.58656,2.0, 0.00000, 0.00000, 55.79999);
MoveDynamicObject(porta2piso1,1497.14600, -102.50519, 62.58656,2.0, 0.00000, 0.00000, 235.19994);
SaveHouses();
return 1;
}
}
}
}
else if(i == 175)
{
if (PlayerToPoint(3.0, playerid,Houses[i][EnterX], Houses[i][EnterY], Houses[i][EnterZ]) || PlayerToPoint(3.0, playerid,Houses[i][ExitX], Houses[i][ExitY], Houses[i][ExitZ]))
{
if(PlayerInfo[playerid][pHouseKey] == i)
{
if(Houses[i][Locked] == 1)
{
Houses[i][Locked] = 0;
SendClientMessage(playerid, COLOR_WHITE,"{1E90FF}[INFO]: {FFFFFF} Porta Destrancada e aberta.");
PlayerActionMessage(playerid,15.0,"meteu a chave na porta, destrancou-a e abriu-a.");
MoveDynamicObject(porta1piso1, 1494.33508, -105.28126, 68.06308,2.0, 0.00000, 0.00000,153.47997);
MoveDynamicObject(porta2piso1,1497.14600, -102.50519, 68.06308,2.0, 0.00000, 0.00000,138.47989);
SaveHouses();
return 1;
}
if(Houses[i][Locked] == 0)
{
Houses[i][Locked] = 1;
SendClientMessage(playerid, COLOR_WHITE,"{1E90FF}[INFO]: {FFFFFF} Porta Trancada e fechada.");
PlayerActionMessage(playerid,15.0,"meteu a chave na porta, trancou-a e fechou-a.");
MoveDynamicObject(porta1piso1, 1494.33508, -105.28126,68.06308,2.0, 0.00000, 0.00000, 55.79999);
MoveDynamicObject(porta2piso1,1497.14600, -102.50519, 68.06308,2.0, 0.00000, 0.00000, 235.19994);
SaveHouses();
return 1;
}
}
}
}
else if(i == 176)
{
if (PlayerToPoint(3.0, playerid,Houses[i][EnterX], Houses[i][EnterY], Houses[i][EnterZ]) || PlayerToPoint(3.0, playerid,Houses[i][ExitX], Houses[i][ExitY], Houses[i][ExitZ]))
{
if(PlayerInfo[playerid][pHouseKey] == i)
{
if(Houses[i][Locked] == 1)
{
Houses[i][Locked] = 0;
SendClientMessage(playerid, COLOR_WHITE,"{1E90FF}[INFO]: {FFFFFF} Porta Destrancada e aberta.");
PlayerActionMessage(playerid,15.0,"meteu a chave na porta, destrancou-a e abriu-a.");
MoveDynamicObject(porta1piso1, 1494.33508, -105.28126, 73.52129,2.0, 0.00000, 0.00000,153.47997);
MoveDynamicObject(porta2piso1,1497.14600, -102.50519, 73.52129,2.0, 0.00000, 0.00000,138.47989);
SaveHouses();
return 1;
}
if(Houses[i][Locked] == 0)
{
Houses[i][Locked] = 1;
SendClientMessage(playerid, COLOR_WHITE,"{1E90FF}[INFO]: {FFFFFF} Porta Trancada e fechada.");
PlayerActionMessage(playerid,15.0,"meteu a chave na porta, trancou-a e fechou-a.");
MoveDynamicObject(porta1piso1, 1494.33508, -105.28126,73.52129,2.0, 0.00000, 0.00000, 55.79999);
MoveDynamicObject(porta2piso1,1497.14600, -102.50519, 73.52129,2.0, 0.00000, 0.00000, 235.19994);
SaveHouses();
return 1;
}
}
}
}
else if(i == 177)
{
if (PlayerToPoint(3.0, playerid,Houses[i][EnterX], Houses[i][EnterY], Houses[i][EnterZ]) || PlayerToPoint(3.0, playerid,Houses[i][ExitX], Houses[i][ExitY], Houses[i][ExitZ]))
{
if(PlayerInfo[playerid][pHouseKey] == i)
{
if(Houses[i][Locked] == 1)
{
Houses[i][Locked] = 0;
SendClientMessage(playerid, COLOR_WHITE,"{1E90FF}[INFO]: {FFFFFF} Porta Destrancada e aberta.");
PlayerActionMessage(playerid,15.0,"meteu a chave na porta, destrancou-a e abriu-a.");
MoveDynamicObject(porta1piso1, 1494.33508, -105.28126, 78.97025,2.0, 0.00000, 0.00000,153.47997);
MoveDynamicObject(porta2piso1,1497.14600, -102.50519, 78.97025,2.0, 0.00000, 0.00000,138.47989);
SaveHouses();
return 1;
}
if(Houses[i][Locked] == 0)
{
Houses[i][Locked] = 1;
SendClientMessage(playerid, COLOR_WHITE,"{1E90FF}[INFO]: {FFFFFF} Porta Trancada e fechada.");
PlayerActionMessage(playerid,15.0,"meteu a chave na porta, trancou-a e fechou-a.");
MoveDynamicObject(porta1piso1, 1494.33508, -105.28126,78.97025,2.0, 0.00000, 0.00000, 55.79999);
MoveDynamicObject(porta2piso1,1497.14600, -102.50519, 78.97025,2.0, 0.00000, 0.00000, 235.19994);
SaveHouses();
return 1;
}
}
}
}
else if(i == 178)
{
if (PlayerToPoint(3.0, playerid,Houses[i][EnterX], Houses[i][EnterY], Houses[i][EnterZ]) || PlayerToPoint(3.0, playerid,Houses[i][ExitX], Houses[i][ExitY], Houses[i][ExitZ]))
{
if(PlayerInfo[playerid][pHouseKey] == i)
{
if(Houses[i][Locked] == 1)
{
Houses[i][Locked] = 0;
SendClientMessage(playerid, COLOR_WHITE,"{1E90FF}[INFO]: {FFFFFF} Porta Destrancada e aberta.");
PlayerActionMessage(playerid,15.0,"meteu a chave na porta, destrancou-a e abriu-a.");
MoveDynamicObject(porta1piso1, 1494.33508, -105.28126, 84.43148,2.0, 0.00000, 0.00000,153.47997);
MoveDynamicObject(porta2piso1,1497.14600, -102.50519, 84.43148,2.0, 0.00000, 0.00000,138.47989);
SaveHouses();
return 1;
}
if(Houses[i][Locked] == 0)
{
Houses[i][Locked] = 1;
SendClientMessage(playerid, COLOR_WHITE,"{1E90FF}[INFO]: {FFFFFF} Porta Trancada e fechada.");
PlayerActionMessage(playerid,15.0,"meteu a chave na porta, trancou-a e fechou-a.");
MoveDynamicObject(porta1piso1, 1494.33508, -105.28126,84.43148,2.0, 0.00000, 0.00000, 55.79999);
MoveDynamicObject(porta2piso1,1497.14600, -102.50519, 84.43148,2.0, 0.00000, 0.00000, 235.19994);
SaveHouses();
return 1;
}
}
}
}
else if(i == 179)
{
if (PlayerToPoint(3.0, playerid,Houses[i][EnterX], Houses[i][EnterY], Houses[i][EnterZ]) || PlayerToPoint(3.0, playerid,Houses[i][ExitX], Houses[i][ExitY], Houses[i][ExitZ]))
{
if(PlayerInfo[playerid][pHouseKey] == i)
{
if(Houses[i][Locked] == 1)
{
Houses[i][Locked] = 0;
SendClientMessage(playerid, COLOR_WHITE,"{1E90FF}[INFO]: {FFFFFF} Porta Destrancada e aberta.");
PlayerActionMessage(playerid,15.0,"meteu a chave na porta, destrancou-a e abriu-a.");
MoveDynamicObject(porta1piso1, 1494.33508, -105.28126, 89.88756,2.0, 0.00000, 0.00000,153.47997);
MoveDynamicObject(porta2piso1,1497.14600, -102.50519, 89.88756,2.0, 0.00000, 0.00000,138.47989);
SaveHouses();
return 1;
}
if(Houses[i][Locked] == 0)
{
Houses[i][Locked] = 1;
SendClientMessage(playerid, COLOR_WHITE,"{1E90FF}[INFO]: {FFFFFF} Porta Trancada e fechada.");
PlayerActionMessage(playerid,15.0,"meteu a chave na porta, trancou-a e fechou-a.");
MoveDynamicObject(porta1piso1, 1494.33508, -105.28126,89.88756,2.0, 0.00000, 0.00000, 55.79999);
MoveDynamicObject(porta2piso1,1497.14600, -102.50519, 89.88756,2.0, 0.00000, 0.00000, 235.19994);
SaveHouses();
return 1;
}
}
}
}
else if(i == 180)
{
if (PlayerToPoint(3.0, playerid,Houses[i][EnterX], Houses[i][EnterY], Houses[i][EnterZ]) || PlayerToPoint(3.0, playerid,Houses[i][ExitX], Houses[i][ExitY], Houses[i][ExitZ]))
{
if(PlayerInfo[playerid][pHouseKey] == i)
{
if(Houses[i][Locked] == 1)
{
Houses[i][Locked] = 0;
SendClientMessage(playerid, COLOR_WHITE,"{1E90FF}[INFO]: {FFFFFF} Porta Destrancada e aberta.");
PlayerActionMessage(playerid,15.0,"meteu a chave na porta, destrancou-a e abriu-a.");
MoveDynamicObject(porta1piso1, 1494.33508, -105.28126, 95.35626,2.0, 0.00000, 0.00000,153.47997);
MoveDynamicObject(porta2piso1,1497.14600, -102.50519, 95.35626,2.0, 0.00000, 0.00000,138.47989);
SaveHouses();
return 1;
}
if(Houses[i][Locked] == 0)
{
Houses[i][Locked] = 1;
SendClientMessage(playerid, COLOR_WHITE,"{1E90FF}[INFO]: {FFFFFF} Porta Trancada e fechada.");
PlayerActionMessage(playerid,15.0,"meteu a chave na porta, trancou-a e fechou-a.");
MoveDynamicObject(porta1piso1, 1494.33508, -105.28126,95.35626,2.0, 0.00000, 0.00000, 55.79999);
MoveDynamicObject(porta2piso1,1497.14600, -102.50519, 95.35626,2.0, 0.00000, 0.00000, 235.19994);
SaveHouses();
return 1;
}
}
}
}
else if(i == 181)
{
if (PlayerToPoint(3.0, playerid,Houses[i][EnterX], Houses[i][EnterY], Houses[i][EnterZ]) || PlayerToPoint(3.0, playerid,Houses[i][ExitX], Houses[i][ExitY], Houses[i][ExitZ]))
{
if(PlayerInfo[playerid][pHouseKey] == i)
{
if(Houses[i][Locked] = 1)
{
Houses[i][Locked] == 0;
SendClientMessage(playerid, COLOR_WHITE,"{1E90FF}[INFO]: {FFFFFF} Porta Destrancada e aberta.");
PlayerActionMessage(playerid,15.0,"meteu a chave na porta, destrancou-a e abriu-a.");
MoveDynamicObject(porta1piso1, 1494.33508, -105.28126, 100.80173,2.0, 0.00000, 0.00000,153.47997);
MoveDynamicObject(porta2piso1,1497.14600, -102.50519, 100.80173,2.0, 0.00000, 0.00000,138.47989);
SaveHouses();
return 1;
}
if(Houses[i][Locked] == 0)
{
Houses[i][Locked] = 1;
SendClientMessage(playerid, COLOR_WHITE,"{1E90FF}[INFO]: {FFFFFF} Porta Trancada e fechada.");
PlayerActionMessage(playerid,15.0,"meteu a chave na porta, trancou-a e fechou-a.");
MoveDynamicObject(porta1piso1, 1494.33508, -105.28126,100.80173,2.0, 0.00000, 0.00000, 55.79999);
MoveDynamicObject(porta2piso1,1497.14600, -102.50519, 100.80173,2.0, 0.00000, 0.00000, 235.19994);
SaveHouses();
return 1;
}
}
}
}
else if(i == 182)
{
if (PlayerToPoint(3.0, playerid,Houses[i][EnterX], Houses[i][EnterY], Houses[i][EnterZ]) || PlayerToPoint(3.0, playerid,Houses[i][ExitX], Houses[i][ExitY], Houses[i][ExitZ]))
{
if(PlayerInfo[playerid][pHouseKey] == i)
{
if(Houses[i][Locked] == 1)
{
Houses[i][Locked] = 0;
SendClientMessage(playerid, COLOR_WHITE,"{1E90FF}[INFO]: {FFFFFF} Porta Destrancada e aberta.");
PlayerActionMessage(playerid,15.0,"meteu a chave na porta, destrancou-a e abriu-a.");
MoveDynamicObject(porta1piso1, 1494.33508, -105.28126, 106.23373,2.0, 0.00000, 0.00000,153.47997);
MoveDynamicObject(porta2piso1,1497.14600, -102.50519, 106.23373,2.0, 0.00000, 0.00000,138.47989);
SaveHouses();
return 1;
}
if(Houses[i][Locked] == 0)
{
Houses[i][Locked] = 1;
SendClientMessage(playerid, COLOR_WHITE,"{1E90FF}[INFO]: {FFFFFF} Porta Trancada e fechada.");
PlayerActionMessage(playerid,15.0,"meteu a chave na porta, trancou-a e fechou-a.");
MoveDynamicObject(porta1piso1, 1494.33508, -105.28126,106.23373,2.0, 0.00000, 0.00000, 55.79999);
MoveDynamicObject(porta2piso1,1497.14600, -102.50519, 106.23373,2.0, 0.00000, 0.00000, 235.19994);
SaveHouses();
return 1;
}
}
}
}
else if(i == 183)
{
if (PlayerToPoint(3.0, playerid,Houses[i][EnterX], Houses[i][EnterY], Houses[i][EnterZ]) || PlayerToPoint(3.0, playerid,Houses[i][ExitX], Houses[i][ExitY], Houses[i][ExitZ]))
{
if(PlayerInfo[playerid][pHouseKey] == i)
{
if(Houses[i][Locked] == 1)
{
Houses[i][Locked] = 0;
SendClientMessage(playerid, COLOR_WHITE,"{1E90FF}[INFO]: {FFFFFF} Porta Destrancada e aberta.");
PlayerActionMessage(playerid,15.0,"meteu a chave na porta, destrancou-a e abriu-a.");
MoveDynamicObject(porta1piso1, 1494.33508, -105.28126, 111.70324,2.0, 0.00000, 0.00000,153.47997);
MoveDynamicObject(porta2piso1,1497.14600, -102.50519, 111.70324,2.0, 0.00000, 0.00000,138.47989);
SaveHouses();
return 1;
}
if(Houses[i][Locked] == 0)
{
Houses[i][Locked] = 1;
SendClientMessage(playerid, COLOR_WHITE,"{1E90FF}[INFO]: {FFFFFF} Porta Trancada e fechada.");
PlayerActionMessage(playerid,15.0,"meteu a chave na porta, trancou-a e fechou-a.");
MoveDynamicObject(porta1piso1, 1494.33508, -105.28126,111.70324,2.0, 0.00000, 0.00000, 55.79999);
MoveDynamicObject(porta2piso1,1497.14600, -102.50519, 111.70324,2.0, 0.00000, 0.00000, 235.19994);
SaveHouses();
return 1;
}
}
}
}
else if(i == 184)
{
if (PlayerToPoint(3.0, playerid,Houses[i][EnterX], Houses[i][EnterY], Houses[i][EnterZ]) || PlayerToPoint(3.0, playerid,Houses[i][ExitX], Houses[i][ExitY], Houses[i][ExitZ]))
{
if(PlayerInfo[playerid][pHouseKey] == i)
{
if(Houses[i][Locked] == 1)
{
Houses[i][Locked] = 0;
SendClientMessage(playerid, COLOR_WHITE,"{1E90FF}[INFO]: {FFFFFF} Porta Destrancada e aberta.");
PlayerActionMessage(playerid,15.0,"meteu a chave na porta, destrancou-a e abriu-a.");
MoveDynamicObject(porta1piso1, 1494.33508, -105.28126, 117.16319,2.0, 0.00000, 0.00000,153.47997);
MoveDynamicObject(porta2piso1,1497.14600, -102.50519, 117.16319,2.0, 0.00000, 0.00000,138.47989);
SaveHouses();
return 1;
}
if(Houses[i][Locked] == 0)
{
Houses[i][Locked] = 1;
SendClientMessage(playerid, COLOR_WHITE,"{1E90FF}[INFO]: {FFFFFF} Porta Trancada e fechada.");
PlayerActionMessage(playerid,15.0,"meteu a chave na porta, trancou-a e fechou-a.");
MoveDynamicObject(porta1piso1, 1494.33508, -105.28126,117.16319,2.0, 0.00000, 0.00000, 55.79999);
MoveDynamicObject(porta2piso1,1497.14600, -102.50519, 117.16319,2.0, 0.00000, 0.00000, 235.19994);
SaveHouses();
return 1;
}
}
}
}
else if(i == 185)
{
if (PlayerToPoint(3.0, playerid,Houses[i][EnterX], Houses[i][EnterY], Houses[i][EnterZ]) || PlayerToPoint(3.0, playerid,Houses[i][ExitX], Houses[i][ExitY], Houses[i][ExitZ]))
{
if(PlayerInfo[playerid][pHouseKey] == i)
{
if(Houses[i][Locked] == 1)
{
Houses[i][Locked] = 0;
SendClientMessage(playerid, COLOR_WHITE,"{1E90FF}[INFO]: {FFFFFF} Porta Destrancada e aberta.");
PlayerActionMessage(playerid,15.0,"meteu a chave na porta, destrancou-a e abriu-a.");
MoveDynamicObject(porta1piso1, 1494.33508, -105.28126, 122.62444,2.0, 0.00000, 0.00000,153.47997);
MoveDynamicObject(porta2piso1,1497.14600, -102.50519, 122.62444,2.0, 0.00000, 0.00000,138.47989);
SaveHouses();
return 1;
}
if(Houses[i][Locked] == 0)
{
Houses[i][Locked] = 1;
SendClientMessage(playerid, COLOR_WHITE,"{1E90FF}[INFO]: {FFFFFF} Porta Trancada e fechada.");
PlayerActionMessage(playerid,15.0,"meteu a chave na porta, trancou-a e fechou-a.");
MoveDynamicObject(porta1piso1, 1494.33508, -105.28126,122.62444,2.0, 0.00000, 0.00000, 55.79999);
MoveDynamicObject(porta2piso1,1497.14600, -102.50519, 122.62444,2.0, 0.00000, 0.00000, 235.19994);
SaveHouses();
return 1;
}
}
}
}
else if(i == 186)
{
if (PlayerToPoint(3.0, playerid,Houses[i][EnterX], Houses[i][EnterY], Houses[i][EnterZ]) || PlayerToPoint(3.0, playerid,Houses[i][ExitX], Houses[i][ExitY], Houses[i][ExitZ]))
{
if(PlayerInfo[playerid][pHouseKey] == i)
{
if(Houses[i][Locked] == 1)
{
Houses[i][Locked] = 0;
SendClientMessage(playerid, COLOR_WHITE,"{1E90FF}[INFO]: {FFFFFF} Porta Destrancada e aberta.");
PlayerActionMessage(playerid,15.0,"meteu a chave na porta, destrancou-a e abriu-a.");
MoveDynamicObject(porta1piso1, 1494.33508, -105.28126, 128.08568,2.0, 0.00000, 0.00000,153.47997);
MoveDynamicObject(porta2piso1,1497.14600, -102.50519, 128.08568,2.0, 0.00000, 0.00000,138.47989);
SaveHouses();
return 1;
}
if(Houses[i][Locked] == 0)
{
Houses[i][Locked] = 1;
SendClientMessage(playerid, COLOR_WHITE,"{1E90FF}[INFO]: {FFFFFF} Porta Trancada e fechada.");
PlayerActionMessage(playerid,15.0,"meteu a chave na porta, trancou-a e fechou-a.");
MoveDynamicObject(porta1piso1, 1494.33508, -105.28126,128.08568,2.0, 0.00000, 0.00000, 55.79999);
MoveDynamicObject(porta2piso1,1497.14600, -102.50519, 128.08568,2.0, 0.00000, 0.00000, 235.19994);
SaveHouses();
return 1;
}
}
}
}
else if(i == 187)
{
if (PlayerToPoint(3.0, playerid,Houses[i][EnterX], Houses[i][EnterY], Houses[i][EnterZ]) || PlayerToPoint(3.0, playerid,Houses[i][ExitX], Houses[i][ExitY], Houses[i][ExitZ]))
{
if(PlayerInfo[playerid][pHouseKey] == i)
{
if(Houses[i][Locked] == 1)
{
Houses[i][Locked] = 0;
SendClientMessage(playerid, COLOR_WHITE,"{1E90FF}[INFO]: {FFFFFF} Porta Destrancada e aberta.");
PlayerActionMessage(playerid,15.0,"meteu a chave na porta, destrancou-a e abriu-a.");
MoveDynamicObject(porta1piso1, 1494.33508, -105.28126, 133.50157,2.0, 0.00000, 0.00000,153.47997);
MoveDynamicObject(porta2piso1,1497.14600, -102.50519, 133.50157,2.0, 0.00000, 0.00000,138.47989);
SaveHouses();
return 1;
}
if(Houses[i][Locked] == 0)
{
Houses[i][Locked] = 1;
SendClientMessage(playerid, COLOR_WHITE,"{1E90FF}[INFO]: {FFFFFF} Porta Trancada e fechada.");
PlayerActionMessage(playerid,15.0,"meteu a chave na porta, trancou-a e fechou-a.");
MoveDynamicObject(porta1piso1, 1494.33508, -105.28126,133.50157,2.0, 0.00000, 0.00000, 55.79999);
MoveDynamicObject(porta2piso1,1497.14600, -102.50519, 133.50157,2.0, 0.00000, 0.00000, 235.19994);
SaveHouses();
return 1;
}
}
}
}
else if(i == 188)
{
if (PlayerToPoint(3.0, playerid,Houses[i][EnterX], Houses[i][EnterY], Houses[i][EnterZ]) || PlayerToPoint(3.0, playerid,Houses[i][ExitX], Houses[i][ExitY], Houses[i][ExitZ]))
{
if(PlayerInfo[playerid][pHouseKey] == i)
{
if(Houses[i][Locked] == 1)
{
Houses[i][Locked] = 0;
SendClientMessage(playerid, COLOR_WHITE,"{1E90FF}[INFO]: {FFFFFF} Porta Destrancada e aberta.");
PlayerActionMessage(playerid,15.0,"meteu a chave na porta, destrancou-a e abriu-a.");
MoveDynamicObject(porta1piso1, 1494.33508, -105.28126, 139.00996,2.0, 0.00000, 0.00000,153.47997);
MoveDynamicObject(porta2piso1,1497.14600, -102.50519, 139.00996,2.0, 0.00000, 0.00000,138.47989);
SaveHouses();
return 1;
}
if(Houses[i][Locked] == 0)
{
Houses[i][Locked] = 1;
SendClientMessage(playerid, COLOR_WHITE,"{1E90FF}[INFO]: {FFFFFF} Porta Trancada e fechada.");
PlayerActionMessage(playerid,15.0,"meteu a chave na porta, trancou-a e fechou-a.");
MoveDynamicObject(porta1piso1, 1494.33508, -105.28126,139.00996,2.0, 0.00000, 0.00000, 55.79999);
MoveDynamicObject(porta2piso1,1497.14600, -102.50519, 139.00996,2.0, 0.00000, 0.00000, 235.19994);
SaveHouses();
return 1;
}
}
}
}
else if(i == 189)
{
if (PlayerToPoint(3.0, playerid,Houses[i][EnterX], Houses[i][EnterY], Houses[i][EnterZ]) || PlayerToPoint(3.0, playerid,Houses[i][ExitX], Houses[i][ExitY], Houses[i][ExitZ]))
{
if(PlayerInfo[playerid][pHouseKey] == i)
{
if(Houses[i][Locked] == 1)
{
Houses[i][Locked] = 0;
SendClientMessage(playerid, COLOR_WHITE,"{1E90FF}[INFO]: {FFFFFF} Porta Destrancada e aberta.");
PlayerActionMessage(playerid,15.0,"meteu a chave na porta, destrancou-a e abriu-a.");
MoveDynamicObject(porta1piso1, 1494.33508, -105.28126, 144.44519,2.0, 0.00000, 0.00000,153.47997);
MoveDynamicObject(porta2piso1,1497.14600, -102.50519, 144.44519,2.0, 0.00000, 0.00000,138.47989);
SaveHouses();
return 1;
}
if(Houses[i][Locked] == 0)
{
Houses[i][Locked] = 1;
SendClientMessage(playerid, COLOR_WHITE,"{1E90FF}[INFO]: {FFFFFF} Porta Trancada e fechada.");
PlayerActionMessage(playerid,15.0,"meteu a chave na porta, trancou-a e fechou-a.");
MoveDynamicObject(porta1piso1, 1494.33508, -105.28126,144.44519,2.0, 0.00000, 0.00000, 55.79999);
MoveDynamicObject(porta2piso1,1497.14600, -102.50519, 144.44519,2.0, 0.00000, 0.00000, 235.19994);
SaveHouses();
return 1;
}
}
}
}
else if(i == 190)
{
if (PlayerToPoint(3.0, playerid,Houses[i][EnterX], Houses[i][EnterY], Houses[i][EnterZ]) || PlayerToPoint(3.0, playerid,Houses[i][ExitX], Houses[i][ExitY], Houses[i][ExitZ]))
{
if(PlayerInfo[playerid][pHouseKey] == i)
{
if(Houses[i][Locked] == 1)
{
Houses[i][Locked] = 0;
SendClientMessage(playerid, COLOR_WHITE,"{1E90FF}[INFO]: {FFFFFF} Porta Destrancada e aberta.");
PlayerActionMessage(playerid,15.0,"meteu a chave na porta, destrancou-a e abriu-a.");
MoveDynamicObject(porta1piso1, 1494.33508, -105.28126, 149.88467,2.0, 0.00000, 0.00000,153.47997);
MoveDynamicObject(porta2piso1,1497.14600, -102.50519, 149.88467,2.0, 0.00000, 0.00000,138.47989);
SaveHouses();
return 1;
}
if(Houses[i][Locked] == 0)
{
Houses[i][Locked] = 1;
SendClientMessage(playerid, COLOR_WHITE,"{1E90FF}[INFO]: {FFFFFF} Porta Trancada e fechada.");
PlayerActionMessage(playerid,15.0,"meteu a chave na porta, trancou-a e fechou-a.");
MoveDynamicObject(porta1piso1, 1494.33508, -105.28126,149.88467,2.0, 0.00000, 0.00000, 55.79999);
MoveDynamicObject(porta2piso1,1497.14600, -102.50519, 149.88467,2.0, 0.00000, 0.00000, 235.19994);
SaveHouses();
return 1;
}
}
}
}
}
}
return 1;
}
here are the errors (PS: These exact errors only show to me when somethings not closed with } and i cant find anything that isnt. Maybe because im tired or because im blind but i just cant find any.)
PHP код:
C:\Users\Vasco\Downloads\Nova pasta\GM_RP_PT\GM_RP_PT\GM_RP_PT\pawno\include\streamer.inc(364) : error 017: undefined symbol "Streamer_OnPlayerPickUpPickup"
C:\Users\Vasco\Downloads\Nova pasta\GM_RP_PT\GM_RP_PT\GM_RP_PT\pawno\include\streamer.inc(384) : error 017: undefined symbol "Streamer_OnPlayerEnterCP"
C:\Users\Vasco\Downloads\Nova pasta\GM_RP_PT\GM_RP_PT\GM_RP_PT\pawno\include\streamer.inc(404) : error 017: undefined symbol "Streamer_OnPlayerLeaveCP"
C:\Users\Vasco\Downloads\Nova pasta\GM_RP_PT\GM_RP_PT\GM_RP_PT\pawno\include\streamer.inc(444) : error 017: undefined symbol "Streamer_OnPlayerLeaveRaceCP"
C:\Users\Vasco\Downloads\Nova pasta\GM_RP_PT\GM_RP_PT\GM_RP_PT\gamemodes\I-RP.pwn(4597) : error 017: undefined symbol "ShowServerPassword"
C:\Users\Vasco\Downloads\Nova pasta\GM_RP_PT\GM_RP_PT\GM_RP_PT\gamemodes\I-RP.pwn(11228) : error 017: undefined symbol "CriarTextDraws"
C:\Users\Vasco\Downloads\Nova pasta\GM_RP_PT\GM_RP_PT\GM_RP_PT\gamemodes\I-RP.pwn(11253) : error 017: undefined symbol "ChangeWeather"
C:\Users\Vasco\Downloads\Nova pasta\GM_RP_PT\GM_RP_PT\GM_RP_PT\gamemodes\I-RP.pwn(11285) : error 017: undefined symbol "KillFire"
C:\Users\Vasco\Downloads\Nova pasta\GM_RP_PT\GM_RP_PT\GM_RP_PT\gamemodes\I-RP.pwn(11320) : error 017: undefined symbol "RPName"
C:\Users\Vasco\Downloads\Nova pasta\GM_RP_PT\GM_RP_PT\GM_RP_PT\gamemodes\I-RP.pwn(11332) : error 017: undefined symbol "GetPlayerNameEx"
C:\Users\Vasco\Downloads\Nova pasta\GM_RP_PT\GM_RP_PT\GM_RP_PT\gamemodes\I-RP.pwn(11346) : error 017: undefined symbol "KickPlayer"
C:\Users\Vasco\Downloads\Nova pasta\GM_RP_PT\GM_RP_PT\GM_RP_PT\gamemodes\I-RP.pwn(11363) : error 017: undefined symbol "KickPlayer"
C:\Users\Vasco\Downloads\Nova pasta\GM_RP_PT\GM_RP_PT\GM_RP_PT\gamemodes\I-RP.pwn(11433) : error 017: undefined symbol "ClearScreen"
C:\Users\Vasco\Downloads\Nova pasta\GM_RP_PT\GM_RP_PT\GM_RP_PT\gamemodes\I-RP.pwn(11635) : error 017: undefined symbol "LoadServerStats"
C:\Users\Vasco\Downloads\Nova pasta\GM_RP_PT\GM_RP_PT\GM_RP_PT\gamemodes\I-RP.pwn(11636) : error 017: undefined symbol "LoadDynamicFactions"
C:\Users\Vasco\Downloads\Nova pasta\GM_RP_PT\GM_RP_PT\GM_RP_PT\gamemodes\I-RP.pwn(11637) : error 017: undefined symbol "LoadDynamicFactionsSalary"
C:\Users\Vasco\Downloads\Nova pasta\GM_RP_PT\GM_RP_PT\GM_RP_PT\gamemodes\I-RP.pwn(11638) : error 017: undefined symbol "LoadDynamicFamilies"
C:\Users\Vasco\Downloads\Nova pasta\GM_RP_PT\GM_RP_PT\GM_RP_PT\gamemodes\I-RP.pwn(11639) : error 017: undefined symbol "LoadCivilianSpawn"
C:\Users\Vasco\Downloads\Nova pasta\GM_RP_PT\GM_RP_PT\GM_RP_PT\gamemodes\I-RP.pwn(11640) : error 017: undefined symbol "LoadCivilianCheckPoint"
C:\Users\Vasco\Downloads\Nova pasta\GM_RP_PT\GM_RP_PT\GM_RP_PT\gamemodes\I-RP.pwn(11641) : error 017: undefined symbol "LoadBuildings"
C:\Users\Vasco\Downloads\Nova pasta\GM_RP_PT\GM_RP_PT\GM_RP_PT\gamemodes\I-RP.pwn(11642) : error 017: undefined symbol "LoadBuildingsExtra"
C:\Users\Vasco\Downloads\Nova pasta\GM_RP_PT\GM_RP_PT\GM_RP_PT\gamemodes\I-RP.pwn(11643) : error 017: undefined symbol "LoadHouses"
C:\Users\Vasco\Downloads\Nova pasta\GM_RP_PT\GM_RP_PT\GM_RP_PT\gamemodes\I-RP.pwn(11644) : error 017: undefined symbol "LoadGarage"
C:\Users\Vasco\Downloads\Nova pasta\GM_RP_PT\GM_RP_PT\GM_RP_PT\gamemodes\I-RP.pwn(11645) : error 017: undefined symbol "LoadFactionGarage"
C:\Users\Vasco\Downloads\Nova pasta\GM_RP_PT\GM_RP_PT\GM_RP_PT\gamemodes\I-RP.pwn(11646) : error 017: undefined symbol "LoadUrnas"
C:\Users\Vasco\Downloads\Nova pasta\GM_RP_PT\GM_RP_PT\GM_RP_PT\gamemodes\I-RP.pwn(11647) : error 017: undefined symbol "LoadBusinesses"
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
EDIT: I know its from this command the errors because i have put it between /* */ compiled and it worked.