Error on compile
#1

Hi guys,

So it has been a while. But I am finally getting back into SA:MP. I am, however though, having trouble after I compile my pawno.

Код:
C:\Users\Adam\Desktop\FluxWar\Pawno\pawno\include\dutils.inc(298) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\Adam\Desktop\FluxWar\Pawno\pawno\include\dutils.inc(443) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\Users\Adam\Desktop\FluxWar\Pawno\pawno\FluxWar.pwn(2527) : error 029: invalid expression, assumed zero
C:\Users\Adam\Desktop\FluxWar\Pawno\pawno\FluxWar.pwn(2527) : error 017: undefined symbol "command"
C:\Users\Adam\Desktop\FluxWar\Pawno\pawno\FluxWar.pwn(2527) : warning 217: loose indentation
C:\Users\Adam\Desktop\FluxWar\Pawno\pawno\FluxWar.pwn(2527) : warning 215: expression has no effect
C:\Users\Adam\Desktop\FluxWar\Pawno\pawno\FluxWar.pwn(2527) : error 001: expected token: ";", but found "]"
C:\Users\Adam\Desktop\FluxWar\Pawno\pawno\FluxWar.pwn(2527) : fatal error 107: too many error messages on one line
Line 298 in dutils.inc:
PHP код:
new tmp[MAX_STRING]; 
Line 443 in dutils.inc:
PHP код:
new tmp[MAX_STRING]; 
Line 2527 in FluxWar.pwn:
PHP код:
new command[10]; 
Thanks
-Adam
Reply
#2

Show your fluxwar.pwn lines 2500-2550. The first one - well, you can remove one of those tmp variables
Reply
#3

Hi Misiur,

Thanks for the help. Here are the lines:

PHP код:
        GameModeExit();
    }
    
mysql_free_result();*/
    
SetTimer("SpamKiller",3000,1);
    
//SetTimer("MainTimer",1000,1);
       
SetTimer("CalculatePosition",1000,1);
       
SetTimer("HelpBot",180000,1);
       
SetTimer("UpdateSend",1000,1);
       
SetTimer("ZoneWar",Min(1),1);
       
SetTimer("FMower_Start",Min(10),1);
       
//SetTimer("FixGangShiz",5000,0);
       
DisableInteriorEnterExits();
       
mysql_debug(1);
    print(
"==============================================================");
    print(
" ____________________________________________________________");
    print(
"|                    FluxWar                                 |");
    print(
"|                    Coding: FluxWar Dev Team v1             |");
    print(
"|                    Version: 3.10                           |");
    print(
"|                    Thanks                                  |");
    print(
"|____________________________________________________________|");
    print(
"==============================================================");
}

public 
OnGameModeInit()
{if

    
//Last Execution staller
    
new command[10];
    new 
XNAME[24];
    new 
id;
    new 
File:handle fopen("/serverstats/admincmd.txt",io_read);
    
fread(handle,string);
    
fclose(handle);
    
surf_Top dini_Int("/serverstats/serverstats.ini","SurfTime");
    
set(surf_TopName,dini_Get("/serverstats/serverstats.ini","SurfName"));
    if(
sscanf(string,"p,ssi",command,XNAME,id)) print("Error");
    else
    {
        
format(st,sizeof(st),"LastExecution: %s.%s.%d",command,XNAME,id);
        
LastExecution st;
    }

    
//picPickup = CreatePickup(1210,23,2264.4749,1391.4198,49.8358,-1);

    //DLC Object Main
    
CreateObject(10865, -282.74222517.32202894.76170.00000.000090.0000);

    
//Pints Stuff
    
CreateObject(83552962.7009277344, -2047.05175781252.5329592227936000);
    
CreateObject(83553002.5061035156, -2047.06127929692.5329592227936000);
    
CreateObject(83553041.7189941406, -2047.08288574222.5329592227936000); 
Reply
#4

pawn Код:
public OnGameModeInit()
{if
What is this stray if doing there?
Reply
#5

Quote:
Originally Posted by Misiur
Посмотреть сообщение
pawn Код:
public OnGameModeInit()
{if
What is this stray if doing there?
It's there to give him errors.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)