SA-MP Forums Archive
a real big errors - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: a real big errors (/showthread.php?tid=590687)



a real big errors - LarryTiger - 02.10.2015

Код:
C:\Documents and Settings\user\Desktop\LarryDM\pawno\include\MTA_LOAD.inc(226) : warning 219: local variable "mapValues" shadows a variable at a preceding level
C:\Documents and Settings\user\Desktop\LarryDM\gamemodes\dmrace.pwn(939) : error 017: undefined symbol "MAX_STRING"
C:\Documents and Settings\user\Desktop\LarryDM\gamemodes\dmrace.pwn(939) : error 009: invalid array size (negative, zero or out of bounds)
C:\Documents and Settings\user\Desktop\LarryDM\gamemodes\dmrace.pwn(939) : error 036: empty statement
C:\Documents and Settings\user\Desktop\LarryDM\gamemodes\dmrace.pwn(939) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Код:
C:\Documents and Settings\user\Desktop\LarryDM\pawno\include\MTA_LOAD.inc(226) : warning 219: local variable "mapValues" shadows a variable at a preceding level
226 problems
Код:
CMD:start(playerid, params[]){
	new mapN[156]; 226
	format(mapN,156,"DMRace/%s/objects.map",params);
	format(mapN3,156,"DMRace/%s/meta.xml",params);
Код:
C:\Documents and Settings\user\Desktop\LarryDM\gamemodes\dmrace.pwn(939) : error 017: undefined symbol "MAX_STRING"
C:\Documents and Settings\user\Desktop\LarryDM\gamemodes\dmrace.pwn(939) : error 009: invalid array size (negative, zero or out of bounds)
C:\Documents and Settings\user\Desktop\LarryDM\gamemodes\dmrace.pwn(939) : error 036: empty statement
C:\Documents and Settings\user\Desktop\LarryDM\gamemodes\dmrace.pwn(939) : fatal error 107: too many error messages on one line
939 problems
Код:
stock trcar(car[]) {
  new tmp[MAX_STRING];939
  set(tmp,car); 
  tmp=strreplace("[","(",tmp);
  tmp=strreplace("]",")",tmp);
  return tmp;
}



Re: a real big errors - Jefff - 02.10.2015

Line 226 is in MTA_LOAD.inc

939 replace to
pawn Код:
stock trcar(car[])
{
    new i = 0;
    while(car[i])
    {
        if(car[i] == '[') car[i] = '(';
        if(car[i] == ']') car[i] = ')';
        i++;
    }
    return car;
}
about line 939 you got double new mapValues; for example

pawn Код:
new mapValues;
public Someting()
{
    new mapValues;
    return 1;
}



Re: a real big errors - LarryTiger - 02.10.2015

Quote:
Originally Posted by Jefff
Посмотреть сообщение
Line 226 is in MTA_LOAD.inc

939 replace to
pawn Код:
stock trcar(car[])
{
    new i = 0;
    while(car[i])
    {
        if(car[i] == '[') car[i] = '(';
        if(car[i] == ']') car[i] = ')';
        i++;
    }
    return car;
}
about line 939 you got double new mapValues; for example

pawn Код:
new mapValues;
public Someting()
{
    new mapValues;
    return 1;
}
Код:
C:\Documents and Settings\user\Desktop\LarryDM\pawno\include\MTA_LOAD.inc(226) : warning 219: local variable "mapValues" shadows a variable at a preceding level
C:\DOCUME~1\user\Desktop\LarryDM\GAMEMO~1\dmrace.pwn(1099) : warning 204: symbol is assigned a value that is never used: "ServerVoted"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
It work but another error
Код:
stock ProgressForMap(){
	KillTimer(UMapTimer);
	UMapTimer = SetTimer("ServerData_UpdateMAP", 800, true);
	ServerData[Loading] = true;
	SendClientMessageToAll(COLOR_MTA, "Map loading in 7 seconds..");
	SetTimer("serverData_SetMAP", 7 * 1000, false);
	ServerData[Vote]=0;
	ServerVoted = false; [1099]
	ServerData[Started] = false;
and do you know how to fix the MTA_LOADER?


Re: a real big errors - LarryTiger - 03.10.2015

bump


Respuesta: a real big errors - jose005 - 11.11.2015

bump