Jump to content

Problema compilare


Recommended Posts

Salut, am si eu o problema la compilarea gamemode-ului Thug! Dacă modific reclamele din include ul defnew, si incerc sa compilez, primesc urmatoarele erori:

-tin sa mentionez ca am inercat sa scot din gm 

''SendClientMessageToAll(0xF7B934FF, RandTxtInf[random(7)]);
    return 1;
}''

insa degeaba, tot 26 erori primesc!

 

 

C:\Users\Adelin-PC\Desktop\Folder nou\Gamemode rpg.thug.ro\Gamemode rpg.thug.ro\pawno\include\defnew.inc(1) : error 010: invalid function or declaration
C:\Users\Adelin-PC\Desktop\Folder nou\Gamemode rpg.thug.ro\Gamemode rpg.thug.ro\gamemodes\GM.pwn(22203) : error 017: undefined symbol "AdminError"
C:\Users\Adelin-PC\Desktop\Folder nou\Gamemode rpg.thug.ro\Gamemode rpg.thug.ro\gamemodes\GM.pwn(23186) : error 017: undefined symbol "AdminError"
C:\Users\Adelin-PC\Desktop\Folder nou\Gamemode rpg.thug.ro\Gamemode rpg.thug.ro\gamemodes\GM.pwn(23206) : error 017: undefined symbol "AdminError"
C:\Users\Adelin-PC\Desktop\Folder nou\Gamemode rpg.thug.ro\Gamemode rpg.thug.ro\gamemodes\GM.pwn(23227) : error 017: undefined symbol "AdminError"
C:\Users\Adelin-PC\Desktop\Folder nou\Gamemode rpg.thug.ro\Gamemode rpg.thug.ro\gamemodes\GM.pwn(23373) : error 017: undefined symbol "AdminError"
C:\Users\Adelin-PC\Desktop\Folder nou\Gamemode rpg.thug.ro\Gamemode rpg.thug.ro\gamemodes\GM.pwn(23444) : error 017: undefined symbol "AdminError"
C:\Users\Adelin-PC\Desktop\Folder nou\Gamemode rpg.thug.ro\Gamemode rpg.thug.ro\gamemodes\GM.pwn(23466) : error 017: undefined symbol "AdminError"
C:\Users\Adelin-PC\Desktop\Folder nou\Gamemode rpg.thug.ro\Gamemode rpg.thug.ro\gamemodes\GM.pwn(23488) : error 017: undefined symbol "AdminError"
C:\Users\Adelin-PC\Desktop\Folder nou\Gamemode rpg.thug.ro\Gamemode rpg.thug.ro\gamemodes\GM.pwn(25722) : error 017: undefined symbol "AdminError"
C:\Users\Adelin-PC\Desktop\Folder nou\Gamemode rpg.thug.ro\Gamemode rpg.thug.ro\gamemodes\GM.pwn(25958) : error 017: undefined symbol "AdminError"
C:\Users\Adelin-PC\Desktop\Folder nou\Gamemode rpg.thug.ro\Gamemode rpg.thug.ro\gamemodes\GM.pwn(25967) : error 017: undefined symbol "AdminError"
C:\Users\Adelin-PC\Desktop\Folder nou\Gamemode rpg.thug.ro\Gamemode rpg.thug.ro\gamemodes\GM.pwn(26135) : error 017: undefined symbol "AdminError"
C:\Users\Adelin-PC\Desktop\Folder nou\Gamemode rpg.thug.ro\Gamemode rpg.thug.ro\gamemodes\GM.pwn(26228) : error 017: undefined symbol "AdminError"
C:\Users\Adelin-PC\Desktop\Folder nou\Gamemode rpg.thug.ro\Gamemode rpg.thug.ro\gamemodes\GM.pwn(26548) : error 017: undefined symbol "AdminError"
C:\Users\Adelin-PC\Desktop\Folder nou\Gamemode rpg.thug.ro\Gamemode rpg.thug.ro\gamemodes\GM.pwn(26579) : error 017: undefined symbol "AdminError"
C:\Users\Adelin-PC\Desktop\Folder nou\Gamemode rpg.thug.ro\Gamemode rpg.thug.ro\gamemodes\GM.pwn(29979) : error 017: undefined symbol "AdminError"
C:\Users\Adelin-PC\Desktop\Folder nou\Gamemode rpg.thug.ro\Gamemode rpg.thug.ro\gamemodes\GM.pwn(30429) : error 017: undefined symbol "AdminError"
C:\Users\Adelin-PC\Desktop\Folder nou\Gamemode rpg.thug.ro\Gamemode rpg.thug.ro\gamemodes\GM.pwn(30438) : error 017: undefined symbol "AdminError"
C:\Users\Adelin-PC\Desktop\Folder nou\Gamemode rpg.thug.ro\Gamemode rpg.thug.ro\gamemodes\GM.pwn(30470) : error 017: undefined symbol "AdminError"
C:\Users\Adelin-PC\Desktop\Folder nou\Gamemode rpg.thug.ro\Gamemode rpg.thug.ro\gamemodes\GM.pwn(30521) : error 017: undefined symbol "AdminError"
C:\Users\Adelin-PC\Desktop\Folder nou\Gamemode rpg.thug.ro\Gamemode rpg.thug.ro\gamemodes\GM.pwn(30528) : error 017: undefined symbol "AdminError"
C:\Users\Adelin-PC\Desktop\Folder nou\Gamemode rpg.thug.ro\Gamemode rpg.thug.ro\gamemodes\GM.pwn(30538) : error 017: undefined symbol "AdminError"
C:\Users\Adelin-PC\Desktop\Folder nou\Gamemode rpg.thug.ro\Gamemode rpg.thug.ro\gamemodes\GM.pwn(30551) : error 017: undefined symbol "AdminError"
C:\Users\Adelin-PC\Desktop\Folder nou\Gamemode rpg.thug.ro\Gamemode rpg.thug.ro\gamemodes\GM.pwn(30576) : error 017: undefined symbol "AdminError"
C:\Users\Adelin-PC\Desktop\Folder nou\Gamemode rpg.thug.ro\Gamemode rpg.thug.ro\gamemodes\GM.pwn(30582) : error 017: undefined symbol "AdminError"

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


26 Errors.

Edited by adelinutu1
Link to comment
Share on other sites

linia cu define adminerror din defnew.inc

#define AdminError "You are not authorized to use that command."

astea sunt mesajele din defnew.inc, pe care daca le modific imi da erori la compilarea gmului

new RandTxtInf[][] =
{
    "Pentru probleme foloseste /report iar pentru intrebari /helpme.",
    "Cheama-ti prietenii pe server si spune-le ID-ul tau de referral pentru a primi un bonus.",
    "Va asteptam cu un cont pe forum-ul nostru, (forum.thug.ro)",
    "Ai propuneri pentru server? Posteaza-le pe forumul nostru, noi vom tine cont de ele. (www.forum.thug.ro)",
    "Nu utilizati /report pentru a chema un admin. Spuneti direct ce problema aveti.",
    "Doresti sa donezi pentru acest server? Tasteaza /shop pentru a vedea produsele disponibile.",
    "Ai gasit buguri pe server? Posteaza-le pe forumul nostru, vor fi reparate in cel mai scurt timp. (www.forum.thug.ro)"
},

Iar aici un exemplu de comanda din gm, unde se foloseste adminerror : https://pastebin.com/wR3DmyjS

 

Link to comment
Share on other sites

3 minutes ago, adelinutu1 said:

linia cu define adminerror din defnew.inc

#define AdminError "You are not authorized to use that command."

astea sunt mesajele din defnew.inc, pe care daca le modific imi da erori la compilarea gmului

new RandTxtInf[][] =
{
    "Pentru probleme foloseste /report iar pentru intrebari /helpme.",
    "Cheama-ti prietenii pe server si spune-le ID-ul tau de referral pentru a primi un bonus.",
    "Va asteptam cu un cont pe forum-ul nostru, (forum.thug.ro)",
    "Ai propuneri pentru server? Posteaza-le pe forumul nostru, noi vom tine cont de ele. (www.forum.thug.ro)",
    "Nu utilizati /report pentru a chema un admin. Spuneti direct ce problema aveti.",
    "Doresti sa donezi pentru acest server? Tasteaza /shop pentru a vedea produsele disponibile.",
    "Ai gasit buguri pe server? Posteaza-le pe forumul nostru, vor fi reparate in cel mai scurt timp. (www.forum.thug.ro)"
},

Iar aici un exemplu de comanda din gm, unde se foloseste adminerror : https://pastebin.com/wR3DmyjS

 

de ce nu definesti AdminError "You are not authorized to use that command." asta direct in gamemode, fara sa mai accesezi un include pentru a face asta ? #define AdminError "You are not authorized to use that command." bagi asta dupa antideamx(daca ai, ar trebuii sa ai)

 

Link to comment
Share on other sites

Ok, l-am definit in gamemode, după include -uri, l-am sters din include, iar acum a ramas un define pentru COLOR_GREEN pe prima linie. si acum imi da:

C:\Gamemodeuri samp\tag\pawno\include\defnew.inc(1) : error 010: invalid function or declaration
C:\Gamemodeuri samp\GM.pwn(5272) : error 017: undefined symbol "COLOR_GREEN"
C:\Gamemodeuri samp\GM.pwn(5302) : error 017: undefined symbol "COLOR_GREEN"
C:\Gamemodeuri samp\GM.pwn(10148) : error 017: undefined symbol "COLOR_GREEN"
C:\Gamemodeuri samp\GM.pwn(10153) : error 017: undefined symbol "COLOR_GREEN"
C:\Gamemodeuri samp\GM.pwn(10571) : error 017: undefined symbol "COLOR_GREEN"
C:\Gamemodeuri samp\GM.pwn(10577) : error 017: undefined symbol "COLOR_GREEN"
C:\Gamemodeuri samp\GM.pwn(27846) : error 017: undefined symbol "COLOR_GREEN"
C:\Gamemodeuri samp\GM.pwn(29803) : error 017: undefined symbol "COLOR_GREEN"
C:\Gamemodeuri samp\GM.pwn(29814) : error 017: undefined symbol "COLOR_GREEN"
C:\Gamemodeuri samp\GM.pwn(31419) : error 017: undefined symbol "COLOR_GREEN"
C:\Gamemodeuri samp\GM.pwn(31424) : error 017: undefined symbol "COLOR_GREEN"
C:\Gamemodeuri samp\GM.pwn(31425) : error 017: undefined symbol "COLOR_GREEN"
C:\Gamemodeuri samp\GM.pwn(31431) : error 017: undefined symbol "COLOR_GREEN"
C:\Gamemodeuri samp\GM.pwn(33489) : error 017: undefined symbol "COLOR_GREEN"
C:\Gamemodeuri samp\GM.pwn(33494) : error 017: undefined symbol "COLOR_GREEN"
C:\Gamemodeuri samp\GM.pwn(33527) : error 017: undefined symbol "COLOR_GREEN"
C:\Gamemodeuri samp\GM.pwn(33533) : error 017: undefined symbol "COLOR_GREEN"
C:\Gamemodeuri samp\GM.pwn(33557) : error 017: undefined symbol "COLOR_GREEN"
C:\Gamemodeuri samp\GM.pwn(33567 -- 33568) : error 017: undefined symbol "COLOR_GREEN"
C:\Gamemodeuri samp\GM.pwn(34796) : error 017: undefined symbol "COLOR_GREEN"

Trebe să ma iau sa trec toate define-urile in gamemode?

Link to comment
Share on other sites

1 minute ago, adelinutu1 said:

Ok, l-am definit in gamemode, după include -uri, l-am sters din include, iar acum a ramas un define pentru COLOR_GREEN pe prima linie. si acum imi da:

C:\Gamemodeuri samp\tag\pawno\include\defnew.inc(1) : error 010: invalid function or declaration
C:\Gamemodeuri samp\GM.pwn(5272) : error 017: undefined symbol "COLOR_GREEN"
C:\Gamemodeuri samp\GM.pwn(5302) : error 017: undefined symbol "COLOR_GREEN"
C:\Gamemodeuri samp\GM.pwn(10148) : error 017: undefined symbol "COLOR_GREEN"
C:\Gamemodeuri samp\GM.pwn(10153) : error 017: undefined symbol "COLOR_GREEN"
C:\Gamemodeuri samp\GM.pwn(10571) : error 017: undefined symbol "COLOR_GREEN"
C:\Gamemodeuri samp\GM.pwn(10577) : error 017: undefined symbol "COLOR_GREEN"
C:\Gamemodeuri samp\GM.pwn(27846) : error 017: undefined symbol "COLOR_GREEN"
C:\Gamemodeuri samp\GM.pwn(29803) : error 017: undefined symbol "COLOR_GREEN"
C:\Gamemodeuri samp\GM.pwn(29814) : error 017: undefined symbol "COLOR_GREEN"
C:\Gamemodeuri samp\GM.pwn(31419) : error 017: undefined symbol "COLOR_GREEN"
C:\Gamemodeuri samp\GM.pwn(31424) : error 017: undefined symbol "COLOR_GREEN"
C:\Gamemodeuri samp\GM.pwn(31425) : error 017: undefined symbol "COLOR_GREEN"
C:\Gamemodeuri samp\GM.pwn(31431) : error 017: undefined symbol "COLOR_GREEN"
C:\Gamemodeuri samp\GM.pwn(33489) : error 017: undefined symbol "COLOR_GREEN"
C:\Gamemodeuri samp\GM.pwn(33494) : error 017: undefined symbol "COLOR_GREEN"
C:\Gamemodeuri samp\GM.pwn(33527) : error 017: undefined symbol "COLOR_GREEN"
C:\Gamemodeuri samp\GM.pwn(33533) : error 017: undefined symbol "COLOR_GREEN"
C:\Gamemodeuri samp\GM.pwn(33557) : error 017: undefined symbol "COLOR_GREEN"
C:\Gamemodeuri samp\GM.pwn(33567 -- 33568) : error 017: undefined symbol "COLOR_GREEN"
C:\Gamemodeuri samp\GM.pwn(34796) : error 017: undefined symbol "COLOR_GREEN"

Trebe să ma iau sa trec toate define-urile in gamemode?

da, cred ca e cel mai indicat asa, le treci din include in gamemode si ar trebuii sa mearga, nu cred ca le citeste ok din include

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.