a real big errors
#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:\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;
}
Reply
#2

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;
}
Reply
#3

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?
Reply
#4

bump
Reply
#5

bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)