Jump to content

Recommended Posts

Posted

Salut. Am postat un nou episod in seria de 'Resurse SA:MP' si anume, un job numit Distribuitor de cadouri.
Pentru mai multe detalii, urmareste videoclipul urmator. Daca iti place munca pe care o depun, ma poti ajuta dandu-mi un subscribe/like/share.
Puteti lasa comentarii cu idei pentru viitoarele episoade. Mai am si o serie de 'Tutoriale Scripting', puteti lasa sugestii.
Aceste doua serii (Resurse & Tutoriale) le fac mai rar, pricipala serie este cea de Gaming. Multumesc pentru vizionare si pentru timpul acordat!
* Este posibil ca videoclipul sa nu fie HD (1024p) deoarece tocmai acum l-am incarcat.
Link video: https://www.youtube.com/watch?v=zVKgv8vJR9g

  • Upvote 1
  • 2 months later...
Posted

Salut am o eroare ..

C:\Users\User\Desktop\BETA\samp03\gamemodes\gamemode.pwn(233) : error 029: invalid expression, assumed zero
C:\Users\User\Desktop\BETA\samp03\gamemodes\gamemode.pwn(233) : warning 215: expression has no effect
C:\Users\User\Desktop\BETA\samp03\gamemodes\gamemode.pwn(233) : error 001: expected token: ";", but found ")"
C:\Users\User\Desktop\BETA\samp03\gamemodes\gamemode.pwn(233) : error 029: invalid expression, assumed zero
C:\Users\User\Desktop\BETA\samp03\gamemodes\gamemode.pwn(233) : fatal error 107: too many error messages on one line

 

Linia :   if(Timer > 0)

 

de la public-ul 

public jobCheck()
{
    new string[256];
    for(new i = 0; i < MAX_PLAYERS; i++)
       {
        if(IsPlayerConnected(i))
           {
            if(Timer > 0)
              {
                Timer--;
                format(string, sizeof(string), "~y~Gift Distributor~w~~h~~n~You have %d seconds until you enter the vehicle.", Timer);
                PlayerTextDrawSetString(i, InfoTD, string);
                PlayerTextDrawShow(i, InfoTD);
                if(Timer == 0)
                  {
                    Timer = -1;
                    JobFailed(i);
                    PlayerTextDrawHide(i, InfoTD);
                }
            }
       }
  }
    return 1;
}

 

Cum rezolv ?Mersi

Posted
12 hours ago, ValyYellow said:

Salut am o eroare ..

C:\Users\User\Desktop\BETA\samp03\gamemodes\gamemode.pwn(233) : error 029: invalid expression, assumed zero
C:\Users\User\Desktop\BETA\samp03\gamemodes\gamemode.pwn(233) : warning 215: expression has no effect
C:\Users\User\Desktop\BETA\samp03\gamemodes\gamemode.pwn(233) : error 001: expected token: ";", but found ")"
C:\Users\User\Desktop\BETA\samp03\gamemodes\gamemode.pwn(233) : error 029: invalid expression, assumed zero
C:\Users\User\Desktop\BETA\samp03\gamemodes\gamemode.pwn(233) : fatal error 107: too many error messages on one line

 

Linia :   if(Timer > 0)

 

de la public-ul 

public jobCheck()
{
    new string[256];
    for(new i = 0; i < MAX_PLAYERS; i++)
       {
        if(IsPlayerConnected(i))
           {
            if(Timer > 0)
              {
                Timer--;
                format(string, sizeof(string), "~y~Gift Distributor~w~~h~~n~You have %d seconds until you enter the vehicle.", Timer);
                PlayerTextDrawSetString(i, InfoTD, string);
                PlayerTextDrawShow(i, InfoTD);
                if(Timer == 0)
                  {
                    Timer = -1;
                    JobFailed(i);
                    PlayerTextDrawHide(i, InfoTD);
                }
            }
       }
  }
    return 1;
}

 

Cum rezolv ?Mersi

ai definit timer-ul?

Retras

Posted (edited)
15 hours ago, ValyYellow said:
15 hours ago, ValyYellow said:

USalut am o eroare ..

C:\Users\User\Desktop\BETA\samp03\gamemodes\gamemode.pwn(233) : error 029: invalid expression, assumed zero
C:\Users\User\Desktop\BETA\samp03\gamemodes\gamemode.pwn(233) : warning 215: expression has no effect
C:\Users\User\Desktop\BETA\samp03\gamemodes\gamemode.pwn(233) : error 001: expected token: ";", but found ")"
C:\Users\User\Desktop\BETA\samp03\gamemodes\gamemode.pwn(233) : error 029: invalid expression, assumed zero
C:\Users\User\Desktop\BETA\samp03\gamemodes\gamemode.pwn(233) : fatal error 107: too many error messages on one line

 

Linia :   if(Timer > 0)

 

de la public-ul 

public jobCheck()
{
    new string[256];
    for(new i = 0; i < MAX_PLAYERS; i++)
       {
        if(IsPlayerConnected(i))
           {
            if(Timer > 0)
              {
                Timer--;
                format(string, sizeof(string), "~y~Gift Distributor~w~~h~~n~You have %d seconds until you enter the vehicle.", Timer);
                PlayerTextDrawSetString(i, InfoTD, string);
                PlayerTextDrawShow(i, InfoTD);
                if(Timer == 0)
                  {
                    Timer = -1;
                    JobFailed(i);
                    PlayerTextDrawHide(i, InfoTD);
                }
            }
       }
  }
    return 1;
}

 

Cum rezolv ?Mersi

La începutul gm.ul trebuie luș new timer[MAX_PLAYERS];

iar unde ai doar timer pui timer[playerid]

Edited by DaEdRiC-FoX

**********************************

Servicii Scripting de calitate:

*********************************

Future Project: ExpertGame

*********************************

  • 1 year later...

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.