[AJUDA] OnGameModeInit
#1

Eae pessoal to com um probleminha aqui
o ongamemodeinit esta executando 2x mesmo com um gm totalemnte em branco, alguem ja ocorreu este problema ?
Reply
#2

Como assim 2x ? Poste o server.log
Reply
#3

Код:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3d, ©2005-2011 SA-MP Team

[11:37:31] filterscripts = ""  (string)
[11:37:31] 
[11:37:31] Server Plugins
[11:37:31] --------------
[11:37:31]  Loaded 0 plugins.

[11:37:32] 
[11:37:32] Filterscripts
[11:37:32] ---------------
[11:37:32]   Loaded 0 filterscripts.

[11:37:32] Sуpraveisso
[11:37:32] Sуpraveisso
[11:37:32] Number of vehicle models: 0
[11:37:37] --- Server Shutting Down.
pawn Код:
public OnGameModeInit()
{
    print("Sуpraveisso");
    return true;
}
Se tiver 1 carro, ele cria 2 no mesmo lugar
Reply
#4

LOL. Poste o server.cfg.
Reply
#5

Код:
echo Executing Server Config...
lanmode 0
rcon_password teste
maxplayers 32
port 7777
hostname Teste
gamemode0 Branco
filterscripts
announce 0
query 1
weburl www.sa-mp.com
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 0
logtimeformat [%H:%M:%S]
Pensei que era somente na 0.3D que esta dando isso testei no 0.3C deu o mesmo --'
[spoiler]
pawn Код:
#include <a_samp>

main();

public OnGameModeInit()
{
    print("Sуpraveisso");
    return false;
}

public OnGameModeExit()
{
    return true;
}

public OnPlayerRequestClass(playerid, classid)
{
    return true;
}

public OnPlayerConnect(playerid)
{
    return true;
}

public OnPlayerDisconnect(playerid, reason)
{
    return true;
}

public OnPlayerSpawn(playerid)
{
    return true;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    return true;
}

public OnVehicleSpawn(vehicleid)
{
    return true;
}

public OnVehicleDeath(vehicleid, killerid)
{
    return true;
}

public OnPlayerText(playerid, text[])
{
    return true;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    return 0;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    return true;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
    return true;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
    return true;
}

public OnPlayerEnterCheckpoint(playerid)
{
    return true;
}

public OnPlayerLeaveCheckpoint(playerid)
{
    return true;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
    return true;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
    return true;
}

public OnRconCommand(cmd[])
{
    return true;
}

public OnPlayerRequestSpawn(playerid)
{
    return true;
}

public OnObjectMoved(objectid)
{
    return true;
}

public OnPlayerObjectMoved(playerid, objectid)
{
    return true;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
    return true;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
    return true;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
    return true;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
    return true;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
    return true;
}

public OnPlayerExitedMenu(playerid)
{
    return true;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
    return true;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    return true;
}

public OnRconLoginAttempt(ip[], password[], success)
{
    return true;
}

public OnPlayerUpdate(playerid)
{
    return true;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
    return true;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
    return true;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
    return true;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
    return true;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    return true;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
    return true;
}
[/spoiler]
Reply
#6

Troque

Код:
gamemode0 Branco
Por

Код:
gamemode0 Branco 1
Reply
#7

Nada feito
Reply
#8

pawn Код:
public OnGameModeInit()
{
    print("Sуpraveisso");
    return true;
}
Reply
#9

Troque o return true para 1;
Reply
#10

pawn Код:
return 1;

pawn Код:
return 0;

pawn Код:
return true;

pawn Код:
return false;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)