Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Question

Posted

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;
     }

5 answers to this question

Recommended Posts

  • 0
Posted (edited)
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

  • 0
Posted (edited)
Acum 16 ore, razvanduciuc a spus:

Serios om? 



 

Ca ti-am gasit dialogul pe o mare zona! :))

Sunt incepator CSF :))

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

Edited by Sphinx_M123
  • 0
Posted
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.