errors in gm file
#1

Hello everybody, I'm gettin' 8 errors, but I don't know how to fix. Thanks!
Code:
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\pawno\include\easydialog.inc(112) : error 017: undefined symbol "DG_OnDialogResponse"
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(261) : warning 202: number of arguments does not match definition
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(266) : warning 202: number of arguments does not match definition
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(266) : warning 202: number of arguments does not match definition
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(266) : warning 202: number of arguments does not match definition
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(266) : warning 202: number of arguments does not match definition
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(265) : warning 203: symbol is never used: "engine"
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(265) : warning 203: symbol is never used: "objective"
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(265) : warning 203: symbol is never used: "boot"
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(265) : warning 203: symbol is never used: "bonnet"
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(265) : warning 203: symbol is never used: "doors"
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(295) : error 004: function "ProxDetector" is not implemented
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(317) : error 004: function "ProxDetector" is not implemented
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(326) : error 004: function "ProxDetector" is not implemented
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(385) : warning 213: tag mismatch
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(436) : warning 217: loose indentation
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(440) : warning 217: loose indentation
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(443) : warning 217: loose indentation
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(443) : error 029: invalid expression, assumed zero
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(443) : error 017: undefined symbol "cmd_finvite"
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(443) : error 029: invalid expression, assumed zero
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(443) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


8 Errors.
Here's my script: http://pastebin.com/y0u7sDcB
!!
Reply
#2

pawn Code:
new viata = GetVehicleHealth(vehicleid);
GetVehicleHealth does not return the health but 1/0 (success/failure). The health is passed by reference: https://sampwiki.blast.hk/wiki/GetVehicleHealth

---

pawn Code:
SetVehicleParamsForPlayer(vehicleid, 0, lights, alarm, doors, bonnet, boot, objective);
Wrong function, it is: https://sampwiki.blast.hk/wiki/SetVehicleParamsEx

---

pawn Code:
PlayerInfo[targetid][fRank] = 1;
Wrong array, it is FactionInfo instead.

---

In /setleader you are missing a closed bracket which causes the error "function "ProxDetector" is not implemented" and "undefined symbol "cmd_finvite"".
Reply
#3

Quote:
Originally Posted by Konstantinos
View Post
pawn Code:
new viata = GetVehicleHealth(vehicleid);
GetVehicleHealth does not return the health but 1/0 (success/failure). The health is passed by reference: https://sampwiki.blast.hk/wiki/GetVehicleHealth

---

pawn Code:
SetVehicleParamsForPlayer(vehicleid, 0, lights, alarm, doors, bonnet, boot, objective);
Wrong function, it is: https://sampwiki.blast.hk/wiki/SetVehicleParamsEx

---

pawn Code:
PlayerInfo[targetid][fRank] = 1;
Wrong array, it is FactionInfo instead.

---

In /setleader you are missing a closed bracket which causes the error "function "ProxDetector" is not implemented" and "undefined symbol "cmd_finvite"".
Code:
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\pawno\include\easydialog.inc(112) : error 017: undefined symbol "DG_OnDialogResponse"
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(266) : warning 203: symbol is never used: "engine"
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(296) : error 004: function "ProxDetector" is not implemented
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(318) : error 004: function "ProxDetector" is not implemented
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(327) : error 004: function "ProxDetector" is not implemented
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(437) : warning 217: loose indentation
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(441) : warning 217: loose indentation
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(444) : warning 217: loose indentation
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(444) : error 029: invalid expression, assumed zero
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(444) : error 017: undefined symbol "cmd_finvite"
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(444) : error 029: invalid expression, assumed zero
C:\Users\mugur\Desktop\MAIN-ROLEPLAY\gamemodes\mysql.pwn(444) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


8 Errors.
I don't saw any missing bracket on /setleader
Reply
#4

Code:
CMD:setleader(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 6)
    {
        new targetid, facid;
        if(sscanf(params,"ui",targetid, facid)) return SendClientMessage(playerid, COLOR_CYAN,"/setleader [id] [factiune]");//if the command is misused it will tell them the correct way to use it

        if(targetid != INVALID_PLAYER_ID)
        {
            PlayerInfo[targetid][pFaction] = facid;
            PlayerInfo[targetid][fRank] = 1;
            PlayerInfo[targetid][pLeader] = facid;
            if(facid == 1)
            {
                SendClientMessage(targetid, COLOR_CYAN, "Ai fost promovat de un admin ca lider EQPD!");
            }
            else if(facid == 2)
            {
                SendClientMessage(targetid, COLOR_CYAN, "Ai fost promovat de un admin ca lider EQFD!");
            }
            else if(facid == 3)
            {
                SendClientMessage(targetid, COLOR_CYAN, "Ai fost promovat de un admin ca primar!");
            }
            else if(facid == 4)
            {
                SendClientMessage(targetid, COLOR_CYAN, "Ai fost promovat de un admin ca lider EQN!");
            }
            else if(facid == 5)
            {
                SendClientMessage(targetid, COLOR_CYAN, "Ai fost promovat de un admin ca lider GANG1!");
            }
            else if(facid == 6)
            {
                SendClientMessage(targetid, COLOR_CYAN, "Ai fost promovat de un admin ca lider GANG2!");
            }
            else if(facid == 7)
            {
                SendClientMessage(targetid, COLOR_CYAN, "Ai fost promovat de un admin ca lider GANG3!");
            }
            else if(facid == 8)
            {
                SendClientMessage(targetid, COLOR_CYAN, "Ai fost promovat de un admin ca lider GANG4!");
            }
            else if(facid == 9)
            {
                SendClientMessage(targetid, COLOR_CYAN, "Ai fost promovat de un admin ca lider MAFIE1!");
            }
            else if(facid == 10)
            {
                SendClientMessage(targetid, COLOR_CYAN, "Ai fost promovat de un admin ca lider MAFIE2!");
            }
            else if(facid == 11)
            {
                SendClientMessage(targetid, COLOR_CYAN, "Ai fost promovat de un admin ca lider MAFIE3!");
            }
            else if(facid == 12)
            {
                SendClientMessage(targetid, COLOR_CYAN, "Ai fost promovat de un admin ca lider MAFIE4!");
            }
        }
    } // HERE YOU MISSED }
    else
    {
        SendClientMessage(playerid, COLOR_CYAN, "Nu esti autorizat.");
    }

    return 1;
}
I made bold the bracket you missed
Reply
#5

Did you even read what he said or even try to fix the problems?
You expected a fixed code didn't ya?Well if you did, NO ONE is going to do that.

Carefully read what @Konstantinos wrote and fix it your self.
Reply
#6

I'm sorry but could you remove yourself from the help section? I don't think you understand the meaning of help?

Taken from Wiki ( meaning of help )
Code:
make it easier or possible for (someone) to do something by offering them one's services or resources.
What you said was in no way helpful to this person.
Reply
#7

I'm really thanks!
That can be closed.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)