Thread: Error 217
View Single Post
Old 17/04/2019, 10:41 AM   #1
ShaggyShaggy
Little Clucker
 
Join Date: Feb 2019
Posts: 34
Reputation: 0
Default Error 217

Error 217(614): loose identitation


CMD:getjob(playerid)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pJob] == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 7.5, 2786.6155,913.2573,10.7500))
{
new INI:file = INI_Open(UserPath(playerid));
SendClientMessage(playerid, albastru_deschis, "Te-ai angajat ca tirist!");
INI_WriteInt(file,"Job", 1);
}
else if (IsPlayerInRangeOfPoint(playerid, 7.5, 0.0,0.0,0.0))
{
new INI:file = INI_Open(UserPath(playerid));
SendClientMessage(playerid, albastru_deschis, "* Esti pe cale sa devii Curva, si sa obti meseria pentru cel putin 5 ore.");
SendClientMessage(playerid, albastru_deschis, "* Trebuie mai intai sa renunti la meseria precedenta pentru a putea lua alta.");
SendClientMessage(playerid, alb, "* Daca esti sigur ca vrei sa fi Curva, scrie /accept job.");
INI_WriteInt(file,"Job", 2);
}
else if (IsPlayerInRangeOfPoint(playerid, 7.5, 1.0,0.0,0.0))
{
new INI:file = INI_Open(UserPath(playerid));
SendClientMessage(playerid, albastru_deschis, "Esti pe cale sa devii Distribuitor de baloti, si sa obti meseria pentru cel putin 5 ore.");
SendClientMessage(playerid, alb, "Daca esti sigur ca vrei sa fi Distribuitor de baloti , scrie /accept job.");
INI_WriteInt(file,"Job", 3);
}
}
else
{
SendClientMessage(playerid,alb, "Esti deja angajat, tasteaza /quitjob pentru a-ti da demisia!");
}
}
(614)return 1;
}
ShaggyShaggy is offline   Reply With Quote