SA-MP Forum
November 21, 2009, 12:32:35 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Hosted tab listings available from serverFFS
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: [HELP]My errors when i compile  (Read 50 times)
Lilcuete
Big Clucker
**
Posts: 110


View Profile
« on: November 03, 2009, 01:07:41 pm »

Code:
Ok i just edited my /uniform command and then i get 26 errors please help me

if(strcmp(cmd, "/uniform", true) == 0)
{
if (PlayerToPoint(3, playerid,254.9053,76.4039,1003.6406) || PlayerToPoint(3,playerid,254.9053,76.4039,1003.6406) || PlayerInfo[playerid][pLocal] != 255)
{
if(PlayerInfo[playerid][pMember] != 1)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE,"_______Uniform_____");
  SendClientMessage(playerid, COLOR_GREY," 1.Cadet     2.Officer  ");
    SendClientMessage(playerid, COLOR_GREY," 3.Sergeant  4.Lieutenant ");
    SendClientMessage(playerid, COLOR_GREY," 5.Captain   6.Chief ");
    SendClientMessage(playerid, COLOR_GREY," 7.FBI       8.Army ");
    SendClientMessage(playerid, COLOR_GREY," 9.Swat      9.Bike ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE,"type the name like /[name]   ");
return 1;
}
  }
else if(strcmp(cmd,"/Cadet",true) == 0)
{
if (PlayerToPoint(3, playerid,254.9053,76.4039,1003.6406) || PlayerToPoint(3,playerid,254.9053,76.4039,1003.6406) || PlayerInfo[playerid][pLocal] != 255)
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
      if (PlayerInfo[playerid][pRank] < 1)
{
SendClientMessage(playerid, COLOR_GRAD1, "   You need to be at least rank1 !");
return 1;
}
else if (PlayerInfo[playerid][pRank] >= 1)
{
    new name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, name, sizeof(name));
        format(string, sizeof(string), "* %s Just got the Cadet uniform from this lock",name);
ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
printf("%s", string);
    SetPlayerSkin(playerid, 71);
        return 1;
}
    }
}
}
else if(strcmp(cmd,"/Officer",true) == 0)
{
        if (PlayerToPoint(3, playerid,254.9053,76.4039,1003.6406) || PlayerToPoint(3,playerid,254.9053,76.4039,1003.6406) || PlayerInfo[playerid][pLocal] != 255)
{
    if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
    {
    if (PlayerInfo[playerid][pRank] < 2)
{
SendClientMessage(playerid, COLOR_GRAD1, "   You need to be at least rank2 !");
return 1;
}
else if (PlayerInfo[playerid][pRank] >= 2)
{
    new name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, name, sizeof(name));
        format(string, sizeof(string), "* %s Just got the Officer uniform from this lock", name);
ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
printf("%s", string);
    SetPlayerSkin(playerid,281);
    return 1;
    }
}
}
}
else if(strcmp(cmd,"/Sergeant",true) == 0)
{
        if (PlayerToPoint(3, playerid,254.9053,76.4039,1003.6406) || PlayerToPoint(3,playerid,254.9053,76.4039,1003.6406) || PlayerInfo[playerid][pLocal] != 255)
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
  if (PlayerInfo[playerid][pRank] < 3)
{
SendClientMessage(playerid, COLOR_GRAD1, "   You need to be at least rank3 !");
return 1;
}
        else if (PlayerInfo[playerid][pRank] >= 3)
        {
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
        format(string, sizeof(string), "* %s Just got the Sergeant uniform from this lock", name);
ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
printf("%s", string);
    SetPlayerSkin(playerid,282);
    return 1;
    }
}
}
}
else if(strcmp(cmd,"/Lieutenant",true) == 0)
{
            if (PlayerToPoint(3, playerid,254.9053,76.4039,1003.6406) || PlayerToPoint(3,playerid,254.9053,76.4039,1003.6406) || PlayerInfo[playerid][pLocal] != 255)
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
if (PlayerInfo[playerid][pRank] < 4)
{
SendClientMessage(playerid, COLOR_GRAD1, "   You need to be at least rank4 !");
return 1;
}
else if (PlayerInfo[playerid][pRank] >= 4)
{
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
        format(string, sizeof(string), "* %s Just got the Lieutenant uniform from this lock", name);
ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
printf("%s", string);
    SetPlayerSkin(playerid,282);
    return 1;
    }
}
}
}
else if(strcmp(cmd,"/Captain",true) == 0)
{
            if(PlayerToPoint(3, playerid,254.9053,76.4039,1003.6406) || PlayerToPoint(3,playerid,254.9053,76.4039,1003.6406) || PlayerInfo[playerid][pLocal] != 255)
{
    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
if(PlayerInfo[playerid][pRank] < 5)
{
SendClientMessage(playerid, COLOR_GRAD1, "   You need to be at least rank5 !");
return 1;
}
else if (PlayerInfo[playerid][pRank] >= 5)
{
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
        format(string, sizeof(string), "* %s Just got the Captain uniform from this lock", name);
ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
printf("%s", string);
    SetPlayerSkin(playerid,283);
    return 1;
    }
}
}
}
else if(strcmp(cmd,"/Chief",true) == 0)
{
            if (PlayerToPoint(3, playerid,254.9053,76.4039,1003.6406) || PlayerToPoint(3,playerid,254.9053,76.4039,1003.6406) || PlayerInfo[playerid][pLocal] != 255)
{
if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1)
{
    if (PlayerInfo[playerid][pRank] < 6)
{
SendClientMessage(playerid, COLOR_GRAD1, "   You need to be at least rank6 !");
return 1;
}
                    else if (PlayerInfo[playerid][pRank] == 6)
{
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
        format(string, sizeof(string), "* %s Just got the chief uniform from this lock", name);
ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
printf("%s", string);
    SetPlayerSkin(playerid,288);
    return 1;
}
}
    }
}
« Last Edit: November 03, 2009, 01:09:42 pm by Lilcuete » Logged
Alice[A11]
Little Clucker
*
Posts: 42


View Profile
« Reply #1 on: November 03, 2009, 01:10:41 pm »

Can you post the errors and the script in pastebin ?
Logged
Lilcuete
Big Clucker
**
Posts: 110


View Profile
« Reply #2 on: November 03, 2009, 01:15:27 pm »

Ok
Code:
C:\DOCUME~1\Lilc\MYDOCU~1\HRP\GAMEMO~1\hrp32.pwn(2251) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\DOCUME~1\Lilc\MYDOCU~1\HRP\GAMEMO~1\hrp32.pwn(2280) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\DOCUME~1\Lilc\MYDOCU~1\HRP\GAMEMO~1\hrp32.pwn(2316) : error 004: function "SafeResetPlayerWeapons" is not implemented
C:\DOCUME~1\Lilc\MYDOCU~1\HRP\GAMEMO~1\hrp32.pwn(2317) : error 004: function "SafeGivePlayerWeapon" is not implemented
C:\DOCUME~1\Lilc\MYDOCU~1\HRP\GAMEMO~1\hrp32.pwn(2344) : error 004: function "SafeResetPlayerWeapons" is not implemented
C:\DOCUME~1\Lilc\MYDOCU~1\HRP\GAMEMO~1\hrp32.pwn(2631) : warning 235: public function lacks forward declaration (symbol "StopAnim")
C:\DOCUME~1\Lilc\MYDOCU~1\HRP\GAMEMO~1\hrp32.pwn(2671) : warning 235: public function lacks forward declaration (symbol "hospital")
C:\DOCUME~1\Lilc\MYDOCU~1\HRP\GAMEMO~1\hrp32.pwn(2678) : error 004: function "SafeGivePlayerMoney" is not implemented
C:\DOCUME~1\Lilc\MYDOCU~1\HRP\GAMEMO~1\hrp32.pwn(2718) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Lilc\MYDOCU~1\HRP\GAMEMO~1\hrp32.pwn(2729) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Lilc\MYDOCU~1\HRP\GAMEMO~1\hrp32.pwn(2741) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Lilc\MYDOCU~1\HRP\GAMEMO~1\hrp32.pwn(2745) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Lilc\MYDOCU~1\HRP\GAMEMO~1\hrp32.pwn(2757) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Lilc\MYDOCU~1\HRP\GAMEMO~1\hrp32.pwn(2761) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Lilc\MYDOCU~1\HRP\GAMEMO~1\hrp32.pwn(2765) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Lilc\MYDOCU~1\HRP\GAMEMO~1\hrp32.pwn(2769) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Lilc\MYDOCU~1\HRP\GAMEMO~1\hrp32.pwn(2773) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Lilc\MYDOCU~1\HRP\GAMEMO~1\hrp32.pwn(2777) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Lilc\MYDOCU~1\HRP\GAMEMO~1\hrp32.pwn(2781) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Lilc\MYDOCU~1\HRP\GAMEMO~1\hrp32.pwn(2785) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Lilc\MYDOCU~1\HRP\GAMEMO~1\hrp32.pwn(2797) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Lilc\MYDOCU~1\HRP\GAMEMO~1\hrp32.pwn(2801) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Lilc\MYDOCU~1\HRP\GAMEMO~1\hrp32.pwn(2805) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Lilc\MYDOCU~1\HRP\GAMEMO~1\hrp32.pwn(2809) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Lilc\MYDOCU~1\HRP\GAMEMO~1\hrp32.pwn(2813) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Lilc\MYDOCU~1\HRP\GAMEMO~1\hrp32.pwn(2825) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Lilc\MYDOCU~1\HRP\GAMEMO~1\hrp32.pwn(2829) : error 004: function "PlayerToPoint" is not implemented
C:\DOCUME~1\Lilc\MYDOCU~1\HRP\GAMEMO~1\hrp32.pwn(2833) : error 004: function "PlayerToPoint" is not implemented

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.
 

Logged
Alice[A11]
Little Clucker
*
Posts: 42


View Profile
« Reply #3 on: November 03, 2009, 01:33:41 pm »

You have probably missed a closing brace: "}"
Logged
Lilcuete
Big Clucker
**
Posts: 110


View Profile
« Reply #4 on: November 03, 2009, 02:00:32 pm »

I do dat and still
Logged
Jose_510
Huge Clucker
***
Posts: 319



View Profile WWW
« Reply #5 on: November 03, 2009, 02:12:59 pm »

Code:
if(strcmp(cmd, "/uniform", true) == 0)
{
if (PlayerToPoint(3, playerid,254.9053,76.4039,1003.6406) || PlayerToPoint(3,playerid,254.9053,76.4039,1003.6406) || PlayerInfo[playerid][pLocal] != 255)
{
if(PlayerInfo[playerid][pMember] != 1)
{
    SendClientMessage(playerid, COLOR_LIGHTBLUE,"_______Uniform_____");
    SendClientMessage(playerid, COLOR_GREY," 1.Cadet     2.Officer  ");
    SendClientMessage(playerid, COLOR_GREY," 3.Sergeant  4.Lieutenant ");
    SendClientMessage(playerid, COLOR_GREY," 5.Captain   6.Chief ");
    SendClientMessage(playerid, COLOR_GREY," 7.FBI       8.Army ");
    SendClientMessage(playerid, COLOR_GREY," 9.Swat      9.Bike ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE,"type the name like /[name]   ");
}
return 1;
}
}

if(strcmp(cmd,"/Cadet",true) == 0)
{
if (PlayerToPoint(3, playerid,254.9053,76.4039,1003.6406) || PlayerToPoint(3,playerid,254.9053,76.4039,1003.6406) || PlayerInfo[playerid][pLocal] != 255)
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
if (PlayerInfo[playerid][pRank] < 1)
{
SendClientMessage(playerid, COLOR_GRAD1, "   You need to be at least rank1 !");
return 1;
}
else if (PlayerInfo[playerid][pRank] >= 1)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "* %s Just got the Cadet uniform from this lock",name);
ProxDetector(20.0, playerid, string,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
printf("%s", string);
SetPlayerSkin(playerid, 71);
}
return 1;
}
}
}

if(strcmp(cmd,"/Officer",true) == 0)
{
if (PlayerToPoint(3, playerid,254.9053,76.4039,1003.6406) || PlayerToPoint(3,playerid,254.9053,76.4039,1003.6406) || PlayerInfo[playerid][pLocal] != 255)
{
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
if (PlayerInfo[playerid][pRank] < 2)
{
SendClientMessage(playerid, COLOR_GRAD1, "   You need to be at least rank2 !");
return 1;
}
else if (PlayerInfo[playerid][pRank] >= 2)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "* %s Just got the Officer uniform from this lock", name);
ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
printf("%s", string);
SetPlayerSkin(playerid,281);
return 1;
}
}
}
}

if(strcmp(cmd,"/Sergeant",true) == 0)
{
if (PlayerToPoint(3, playerid,254.9053,76.4039,1003.6406) || PlayerToPoint(3,playerid,254.9053,76.4039,1003.6406) || PlayerInfo[playerid][pLocal] != 255)
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
if (PlayerInfo[playerid][pRank] < 3)
{
SendClientMessage(playerid, COLOR_GRAD1, "   You need to be at least rank3 !");
return 1;
}
else if (PlayerInfo[playerid][pRank] >= 3)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "* %s Just got the Sergeant uniform from this lock", name);
ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
printf("%s", string);
SetPlayerSkin(playerid,282);
 return 1;
}
}
}
}

if(strcmp(cmd,"/Lieutenant",true) == 0)
{
if (PlayerToPoint(3, playerid,254.9053,76.4039,1003.6406) || PlayerToPoint(3,playerid,254.9053,76.4039,1003.6406) || PlayerInfo[playerid][pLocal] != 255)
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
if (PlayerInfo[playerid][pRank] < 4)
{
SendClientMessage(playerid, COLOR_GRAD1, "   You need to be at least rank4 !");
return 1;
}
else if (PlayerInfo[playerid][pRank] >= 4)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "* %s Just got the Lieutenant uniform from this lock", name);
ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
printf("%s", string);
SetPlayerSkin(playerid,282);
return 1;
}
}
}
}

if(strcmp(cmd,"/Captain",true) == 0)
{
if(PlayerToPoint(3, playerid,254.9053,76.4039,1003.6406) || PlayerToPoint(3,playerid,254.9053,76.4039,1003.6406) || PlayerInfo[playerid][pLocal] != 255)
{
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
if(PlayerInfo[playerid][pRank] < 5)
{
SendClientMessage(playerid, COLOR_GRAD1, "   You need to be at least rank5 !");
return 1;
}
else if (PlayerInfo[playerid][pRank] >= 5)
{
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
        format(string, sizeof(string), "* %s Just got the Captain uniform from this lock", name);
ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
printf("%s", string);
    SetPlayerSkin(playerid,283);
return 1;
}
}
}
}

if(strcmp(cmd,"/Chief",true) == 0)
{
if (PlayerToPoint(3, playerid,254.9053,76.4039,1003.6406) || PlayerToPoint(3,playerid,254.9053,76.4039,1003.6406) || PlayerInfo[playerid][pLocal] != 255)
{
if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1)
{
if (PlayerInfo[playerid][pRank] < 6)
{
SendClientMessage(playerid, COLOR_GRAD1, "   You need to be at least rank6 !");
return 1;
}
else if (PlayerInfo[playerid][pRank] == 6)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "* %s Just got the chief uniform from this lock", name);
ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
printf("%s", string);
SetPlayerSkin(playerid,288);
return 1;
}
}
}
}

Well, let me put it this way.. It you use four of these brackets "{" then make sure there are four of "}" these brackets, where they need to go. Your indentation needs a lot of work too man.
« Last Edit: November 03, 2009, 02:18:40 pm by Jose_510 » Logged

hi. Is that possabole to put the Chat on the Homepage? Like that pebole on the Site can chat with pebole in the Game?
..
..
Stupit? No if somone say somthang is stupit he/her are self stupit. I mean so pebole on the site can chat with the Pebole in the game.
..
..
Is there any IRC Boot to do it?
Pebole we got to help him with the IRC boot so that somone dont say somthang stupit

God I love Non-English speakers

Advertisements: http://forum.sa-mp.com/index.php?topic=120044.msg738494#msg738494
Alice[A11]
Little Clucker
*
Posts: 42


View Profile
« Reply #6 on: November 03, 2009, 02:16:28 pm »

Code:
if(strcmp(cmd, "/uniform", true) == 0)
{
if (PlayerToPoint(3, playerid,254.9053,76.4039,1003.6406) || PlayerToPoint(3,playerid,254.9053,76.4039,1003.6406) || PlayerInfo[playerid][pLocal] != 255)
{
if(PlayerInfo[playerid][pMember] != 1)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE,"_______Uniform_____");
SendClientMessage(playerid, COLOR_GREY," 1.Cadet     2.Officer  ");
    SendClientMessage(playerid, COLOR_GREY," 3.Sergeant  4.Lieutenant ");
    SendClientMessage(playerid, COLOR_GREY," 5.Captain   6.Chief ");
    SendClientMessage(playerid, COLOR_GREY," 7.FBI       8.Army ");
    SendClientMessage(playerid, COLOR_GREY," 9.Swat      9.Bike ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE,"type the name like /[name]   ");
return 1;
}
  }
} // here
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF one | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!