debug error!
#3

PHP код:
public OnGameModeInit()
{
    new 
t=GetTickCount();
    
SetTimer("CheckGameMode",10,false);
    
AntiDeAMX();
    if(
MAX_PLAYERS!=GetMaxPlayers())
    {
        print(
"[Scripterror] MAX_PLAYERS stimmt nicht mit der in der server.cfg definierten");
        print(
"[Scripterror] Anzahl an maximalen Spielern ueberein!");
        print(
"[Scripterror] Serverstart wird abgebrochen!");
        
SendRconCommand("exit");
        return 
0;
    }
    
    new 
string[512],string_en[512];
    
#if defined HOSTER
        
format(MainHostNamesizeof MainHostName,"%s | %s",MainHostName,HOSTER);
        
SendRconCommand("mapname "#HOSTER);
    #endif
    
format(string,sizeof(string),"hostname %s",MainHostName);
    
SendRconCommand(string);//Hostname
    
    #if defined WEBSITE
        
SendRconCommand("weburl "#WEBSITE);
    #endif
    
SetGameModeText("DM+Gangs+Minigames+Stunt [GERMAN]");
    
SendRconCommand("loadfs yom_buttons");
    
    
MapAndreas_Init(MAP_ANDREAS_MODE_MINIMAL);
    
    if (!
DOF_FileExists(COOKIES_PRICE_FILE))
    {
        
DOF_CreateFile(COOKIES_PRICE_FILE);
        for (new 
0MAX_COOKIES_PRICESi++)
            
DOF_SetInt(COOKIES_PRICE_FILECookiePrices[i][cprName], CookiePrices[i][cprPrice]);
    } 
Reply


Messages In This Thread
debug error! - by PuN1Sh3r - 17.01.2016, 21:15
Re: debug error! - by PuN1Sh3r - 17.01.2016, 22:05
Re: debug error! - by PuN1Sh3r - 17.01.2016, 22:07
Re: debug error! - by PuN1Sh3r - 18.01.2016, 10:42
Re: debug error! - by PuN1Sh3r - 18.01.2016, 20:43

Forum Jump:


Users browsing this thread: 3 Guest(s)