SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 17/04/2019, 10:41 AM   #1
ShaggyShaggy
Little Clucker
 
Join Date: Feb 2019
Posts: 28
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
Old 17/04/2019, 10:58 AM   #2
khRamin78
Huge Clucker
 
khRamin78's Avatar
 
Join Date: Jun 2015
Posts: 273
Reputation: 23
Default Re: Error 217

PHP Code:
CMD:getjob(playerid)
{
    if(
IsPlayerConnected(playerid))
    {
        if(
PlayerInfo[playerid][pJob] == 0)
        {
            if(
IsPlayerInRangeOfPoint(playerid7.52786.6155,913.2573,10.7500))
            {
                new 
INI:file INI_Open(UserPath(playerid));
                
SendClientMessage(playeridalbastru_deschis"Te-ai angajat ca tirist!");
                
INI_WriteInt(file,"Job"1);
            }
            else if (
IsPlayerInRangeOfPoint(playerid7.50.0,0.0,0.0))
            {
                new 
INI:file INI_Open(UserPath(playerid));
                
SendClientMessage(playeridalbastru_deschis"* Esti pe cale sa devii Curva, si sa obti meseria pentru cel putin 5 ore.");
                
SendClientMessage(playeridalbastru_deschis"* Trebuie mai intai sa renunti la meseria precedenta pentru a putea lua alta.");
                
SendClientMessage(playeridalb"* Daca esti sigur ca vrei sa fi Curva, scrie /accept job.");
                
INI_WriteInt(file,"Job"2);
            }
            else if (
IsPlayerInRangeOfPoint(playerid7.51.0,0.0,0.0))
            {
                new 
INI:file INI_Open(UserPath(playerid));
                
SendClientMessage(playeridalbastru_deschis"Esti pe cale sa devii Distribuitor de baloti, si sa obti meseria pentru cel putin 5 ore.");
                
SendClientMessage(playeridalb"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!");
        }
    }
    return 
1;

__________________
My Work's :
khRamin78 is offline   Reply With Quote
Old 17/04/2019, 11:17 AM   #3
TheToretto
Gangsta
 
TheToretto's Avatar
 
Join Date: Jul 2015
Posts: 534
Reputation: 63
Default Re: Error 217

indentitation
__________________






Toretto#9902

Rest in peace grandpa, 03 November 2018
TheToretto is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
error 017: undefined symbol,fatal error 107: too many error messages on one line Slicebook Scripting Help 11 04/05/2014 08:30 PM
An error has occured. (Error ID: 1064, You have an error in your SQL syntax; check the manual that corresponds.... rati555 Scripting Help 1 14/09/2012 07:45 PM
Registered plate stock error 'error 076: syntax error in the expression, or invalid function call' Deal-or-die Scripting Help 2 25/06/2012 03:12 PM
Error message: : error 030: compound statement not closed at the end of file (started at line 503) David5290 Scripting Help 5 13/04/2012 03:50 AM
I get tagmismatch error, But i cant find any error error Swiftz Help Archive 1 16/04/2011 04:31 AM


All times are GMT. The time now is 12:24 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.