Jump to content
  • 0

Error function


KB.HERO

Question

Salut am incercat sa bag sistem de helper gen bugged pe un gm bigzone si cind am ajuns la function sa definesc SendAdminMessage

imi da o erroare si nu am ideie dela ce ieste 

codul:

Spoiler

image.png.8f5e1f98cb08bda4e4aed68be2716e2e.png

error:

Spoiler

image.png.fcd67e1c09a85ea3a6030c909fda2fdd.png

 

 Încearcă să fii un om de valoare și nu neapărat un om de succes.

 

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0
Acum 1 oră, KB.HERO a spus:

Salut am incercat sa bag sistem de helper gen bugged pe un gm bigzone si cind am ajuns la function sa definesc SendAdminMessage

imi da o erroare si nu am ideie dela ce ieste 

codul:

  Ascunde conținuturi

image.png.8f5e1f98cb08bda4e4aed68be2716e2e.png

error:

  Ascunde conținuturi

image.png.fcd67e1c09a85ea3a6030c909fda2fdd.png

 

iNCEARCA :

function SendAdminMessage(color,const string[],level) {
    new text[180];
    foreach(Player, i) {
        if(IsPlayerConnected(i) && IsPlayerLogged == 1) {
            if(IsPlayerLogged == 1) {
                if(PlayerData[pAdmin] >= level) {
                    format(text, 256, string);
                    SendClientMessage(i, color, text);                
                }
            }
        }
    }
    printf("ABC: %s", string);
    return 1;
}

 

Link to comment
Share on other sites

  • 0
39 minutes ago, [El.Capo] said:

iNCEARCA :

function SendAdminMessage(color,const string[],level) {
    new text[180];
    foreach(Player, i) {
        if(IsPlayerConnected(i) && IsPlayerLogged == 1) {
            if(IsPlayerLogged == 1) {
                if(PlayerData[pAdmin] >= level) {
                    format(text, 256, string);
                    SendClientMessage(i, color, text);                
                }
            }
        }
    }
    printf("ABC: %s", string);
    return 1;
}

 

Tot acelasi erori dami discord tau as vb 

 Încearcă să fii un om de valoare și nu neapărat un om de succes.

 

Link to comment
Share on other sites

  • 0
5 hours ago, VipBo$$ said:

Arata tot randu de eroare, adica si de unde provine, nu doar nr liniei si eroarea.

Eu am eroare la functia asta nu la alt ceva

 

 Încearcă să fii un om de valoare și nu neapărat un om de succes.

 

Link to comment
Share on other sites

  • 0

 error 029: invalid expression, assumed zero

PlayerInfo[playerid][pSpawnChange] = listitem, pUpdateInt(playerid, "SpawnChange", listitem);

ce poate sa fie aici //?

 Încearcă să fii un om de valoare și nu neapărat un om de succes.

 

Link to comment
Share on other sites

  • 0
7 minutes ago, AlexxAdv said:

Desi stiu ca function tine locul public-ului si forward-ului, fac forward SendAdminMessage(color,const string[],level) si public SendAdminMessage(color,const string[],level)

Dami functia mai pe clar 

 Încearcă să fii un om de valoare și nu neapărat un om de succes.

 

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
Answer this question...

×   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.