Jump to content
  • 0

Eroare la compilare.


Sphinx_M123

Question

Salut imi da aceasta eroare cand il compilez:  

C:\Users\Darius\Desktop\Gamemode\Gamemode\gamemodes\BigZoneGM.pwn(44652) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
 

______________________________________________________________________________

     if(dialogid == /)
     {
          new emailtext[64];
        mysql_real_escape_string(inputtext, emailtext);
        strmid(PlayerInfo[playerid][pEmail], emailtext, 0, strlen(emailtext), 64);
        if(IsMail(inputtext) && response && strlen(inputtext)<30)
         {
             if(PlayerInfo[playerid][pLanguage] == 2)
             {
                 format(string, sizeof(string), "Email setat: %s.", PlayerInfo[playerid][pEmail]);
                 SendClientMessage(playerid, COLOR_YELLOW, string);
            }
            else
            {
                format(string, sizeof(string), "Email set to: %s.", PlayerInfo[playerid][pEmail]);
                 SendClientMessage(playerid, COLOR_YELLOW, string);
            }
         }
         else
         {
             if(PlayerInfo[playerid][pLanguage] == 2)
            {
                 SendClientMessage(playerid, COLOR_YELLOW, "Ai ales sa nu introduci emailul. Daca vrei sa-ti setezi un email pe cont in viitor, intra pe panel.Nume-Server.ro.");
            }
            else
            {
                SendClientMessage(playerid, COLOR_YELLOW, "You choosed not to set an email. You can go to panel.Nume-Server.ro to set an email at a later date, if you want to.");
            }
        }
        RegistrationStep[playerid] = 0;
        TutTime[playerid] = 1;
        TogglePlayerSpectating(playerid, 1);
        new connectplayer[60],stringplayer[100];
         GetPlayerName(playerid,connectplayer,sizeof(connectplayer));
        format(stringplayer,sizeof(stringplayer),"New account: %s (%d).",connectplayer,playerid);
         HLChat(COLOR_RED2,stringplayer);
          ABroadCast(COLOR_RED2,stringplayer,1);
        foreach(Player,iss)
        {
            if(PlayerInfo[iss][pHelper] > 0 || PlayerInfo[iss][pAdmin] > 0)
            {
                KillTimer(deathdeletetime[iss]);
                SendDeathMessageToPlayer(iss, INVALID_PLAYER_ID, playerid, 200);
                deathdeletetime[iss] = SetTimerEx("DeleteDeathMessage",30000,0,"d",iss);
            }
        }
        return 1;
     }

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0
21 minutes ago, Sphinx_M123 said:

Salut imi da aceasta eroare cand il compilez:  

C:\Users\Darius\Desktop\Gamemode\Gamemode\gamemodes\BigZoneGM.pwn(44652) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
 

______________________________________________________________________________

     if(dialogid == /)
     {
          new emailtext[64];
        mysql_real_escape_string(inputtext, emailtext);
        strmid(PlayerInfo[playerid][pEmail], emailtext, 0, strlen(emailtext), 64);
        if(IsMail(inputtext) && response && strlen(inputtext)<30)
         {
             if(PlayerInfo[playerid][pLanguage] == 2)
             {
                 format(string, sizeof(string), "Email setat: %s.", PlayerInfo[playerid][pEmail]);
                 SendClientMessage(playerid, COLOR_YELLOW, string);
            }
            else
            {
                format(string, sizeof(string), "Email set to: %s.", PlayerInfo[playerid][pEmail]);
                 SendClientMessage(playerid, COLOR_YELLOW, string);
            }
         }
         else
         {
             if(PlayerInfo[playerid][pLanguage] == 2)
            {
                 SendClientMessage(playerid, COLOR_YELLOW, "Ai ales sa nu introduci emailul. Daca vrei sa-ti setezi un email pe cont in viitor, intra pe panel.Nume-Server.ro.");
            }
            else
            {
                SendClientMessage(playerid, COLOR_YELLOW, "You choosed not to set an email. You can go to panel.Nume-Server.ro to set an email at a later date, if you want to.");
            }
        }
        RegistrationStep[playerid] = 0;
        TutTime[playerid] = 1;
        TogglePlayerSpectating(playerid, 1);
        new connectplayer[60],stringplayer[100];
         GetPlayerName(playerid,connectplayer,sizeof(connectplayer));
        format(stringplayer,sizeof(stringplayer),"New account: %s (%d).",connectplayer,playerid);
         HLChat(COLOR_RED2,stringplayer);
          ABroadCast(COLOR_RED2,stringplayer,1);
        foreach(Player,iss)
        {
            if(PlayerInfo[iss][pHelper] > 0 || PlayerInfo[iss][pAdmin] > 0)
            {
                KillTimer(deathdeletetime[iss]);
                SendDeathMessageToPlayer(iss, INVALID_PLAYER_ID, playerid, 200);
                deathdeletetime[iss] = SetTimerEx("DeleteDeathMessage",30000,0,"d",iss);
            }
        }
        return 1;
     }

Serios man? 

 if(dialogid == /)
in loc de asta pune 
 id(dialogid == DIALOG_REGISTER4) 

Ca ti-am gasit dialog-ul pe un bigzone! :))

Edited by razvanduciuc

Ai nevoie de ajutor in scripting si nu ai bani? Te pot ajuta cu mare drag. Dar asta nu inseamna sa iti lucrez un Sistem de joc complet, daca ai nevoie de ajutor ma poti contacta pe Discord.ezgif-2-3a38433e2465.gif.9283810e304f5e405309769455e5e14b.gif

Link to comment
Share on other sites

  • 0
8 hours ago, Sphinx_M123 said:

Sunt incepator CSF :))

Mi-am mai dat drumul la mana..am scimbat spawn,ds/dmv..(checkpoints dmv)

Bravo, incer se invata. Dar invata frumos! :)

Ai nevoie de ajutor in scripting si nu ai bani? Te pot ajuta cu mare drag. Dar asta nu inseamna sa iti lucrez un Sistem de joc complet, daca ai nevoie de ajutor ma poti contacta pe Discord.ezgif-2-3a38433e2465.gif.9283810e304f5e405309769455e5e14b.gif

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.