Hallo ich habe eben die ersten objekte in mein script eingefügt und dann kommt im spiel der Fehler "Stay in with ... " oder so.
public OnGameModeInit()
{
dbhandle = mysql_connect(db_host,db_user,db_db,db_pass);
CreateObject(17716, 2408.0938, -1658.9063, 12.3984,0.25,0.0,0.0);
new gsobjekt1 = CreateObject(17612, 2408.0938, -1658.9063, 12.3984,0.25,0.0,0.0);
SetObjectMaterial(gsobjekt1,3,6322,"lae2_roads88","rodeo3jsm",0);
return 1;
}
public OnPlayerConnect(playerid)
{
RemoveBuildingForPlayer(playerid, 17716, 2408.0938, -1658.9063, 12.3984, 0.25);
RemoveBuildingForPlayer(playerid, 17612, 2408.0938, -1658.9063, 12.3984, 0.25);
new name[MAX_PLAYER_NAME],query[128];
GetPlayerName(playerid,name,sizeof(name));
format(query,sizeof(query),"SELECT * FROM user WHERE username='%s'",name);
mysql_pquery(dbhandle,query,"AccountCheck","i",playerid);
return 1;
}