Jump to content
  • 0

Problema job


ValyYellow

Question

Problema intalnita (descriere):Am bagat job-ul lui Edw de distribuitor de cadouri si am o mica eroare
Ero(area / rile) / warning-(ul / urile):C:\Users\User\Desktop\BETA\samp03\gamemodes\gamemode.pwn(165) : warning 201: redefinition of constant/macro (symbol "COLOR_LIGHTGREEN")
C:\Users\User\Desktop\BETA\samp03\gamemodes\gamemode.pwn(231) : error 029: invalid expression, assumed zero
C:\Users\User\Desktop\BETA\samp03\gamemodes\gamemode.pwn(231) : warning 215: expression has no effect
C:\Users\User\Desktop\BETA\samp03\gamemodes\gamemode.pwn(231) : error 001: expected token: ";", but found "]"
C:\Users\User\Desktop\BETA\samp03\gamemodes\gamemode.pwn(231) : error 029: invalid expression, assumed zero
C:\Users\User\Desktop\BETA\samp03\gamemodes\gamemode.pwn(231) : fatal error 107: too many error messages on one line


Liniile de cod / sursa / script-ul(obligatoriu):

public jobCheck() {

    new string[256];
    for(new i = 0; i < MAX_PLAYERS; i++) {
        if(IsPlayerConnected(i)) {
            if(Timer >= 1) {
                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;
}

linia 231 e   if(Timer >= 1) {


Imagini / Video (optional):..
Ati incercat sa rezolvati singur?:Da

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

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

Daca nu merge asa posteaza definitia timerului sau cum ai timerul definit / facut.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.