Jump to content

Job Gift Distribuitor


Edw

Recommended Posts

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
Link to comment
Share on other sites

  • 2 months later...

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

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

Link to comment
Share on other sites

  • 1 year later...

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.