Guten Tag liebe leute,
ich habe ein kleines Problem.
Undzwar werden keine Objekte mehr erstellt. Von den ein auf den anderen Moment.
Hier mein OnGameModeInit:
public OnGameModeInit()
{
//MYSQL CONNECTION
Handle = mysql_connect(MYSQL_HOST,MYSQL_USER,MYSQL_DATA,MYSQL_PASS);
if(mysql_errno() == 0)print("MySQL: Die Verbindung wurde erfolgreich hergestellt.."),mysql_log(LOG_ALL); else print("MySQL: Die Verbindung zur Datenbank konnte nicht hergestellt werden | Der Server wird nun heruntergefahren."),SendRconCommand("exit");
//---------------------------------------------------------------------------------
//
//GENERAL SETTINGS/LOADS
SetGameModeText("Train Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
CreatePickup(1239,1,1486.8600,-1688.4371,14.0469,0);
new str[64];
format(str,sizeof(str),"Type {FFFF00}/rentbike{FFFFFF}\nTo rent a Bike.");
Create3DTextLabel(str,Weiß,1486.8600,-1688.4371,14.0469,10,0,0);
UsePlayerPedAnims();
DisableInteriorEnterExits();
//---------------------------------------------------------------------------------
//
//LOAD EVERYTHING
LoadVehicles();
LoadHouses();
LockVehicles();
//---------------------------------------------------------------------------------
//
//INTERIOR EDITS | INTERIOR NAME: KATIE ROOM | ID: 2
CreateObject(1740, 271.37711, 307.37109, 998.14581, 0.00000, 0.00000, 0.00000);
CreateObject(1720, 273.18369, 304.97870, 998.14832, 0.00000, 0.00000, 90.00000);
CreateObject(948, 273.93655, 306.75726, 998.14777, 0.00000, 0.00000, 297.98138);
CreateObject(1740, 268.86151, 307.37109, 998.14581, 0.00000, 0.00000, 0.00000);
CreateObject(1516, 273.77328, 304.98889, 998.31073, 0.00000, 0.00000, 0.00000);
CreateObject(1720, 273.80569, 305.60049, 998.14832, 0.00000, 0.00000, 0.00000);
CreateObject(1720, 273.80569, 304.44049, 998.14832, 0.00000, 0.00000, -180.00000);
//---------------------------------------------------------------------------------
//
//MAP EDITINGS
for(new i=0;i<MAX_ATMS;i++)
{
CreateObject(2942,AtmInfo[i][a_x],AtmInfo[i][a_y],AtmInfo[i][a_z],AtmInfo[i][a_a1],AtmInfo[i][a_a2],AtmInfo[i][a_a3]);
AtmLabel[i] = Create3DTextLabel("This is an ATM.\nUse {FF7800}/atm{FFFFFF} to enter the Bank Menu.",Weiß,AtmInfo[i][a_x],AtmInfo[i][a_y],AtmInfo[i][a_z],7.50,0,0);
}
CreateObject(1676, 1008.94470, -936.19537, 42.74210, 0.00000, 0.00000, 8.41960);
CreateObject(1676, 1001.64630, -937.23218, 42.74214, 0.00000, 0.00000, 8.41958);
CreateObject(1676, 1006.00983, -936.55798, 42.74214, 0.00000, 0.00000, 8.41958);
CreateObject(1676, 998.85504, -937.66339, 42.74214, 0.00000, 0.00000, 8.41958);
//---------------------------------------------------------------------------------
return 1;
}
}