PrivatCar lädt wieder nicht..

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Erstelle doch lieber neuen Thread, da es nichts mit dem alten zu tun hat..


    Also: Warum lädt mein Privatcar nicht?


    Spoiler anzeigen
    stock LoadPCars(playerid)
    {
    if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
    {
    GetPlayerName(playerid,PrivatCar[playerid][PlayerName], MAX_PLAYER_NAME);
    PrivatCar[playerid][privatColor1] = mysql_GetInt("privatcars", "Color1", "Name",PrivatCar[playerid][PlayerName]);
    PrivatCar[playerid][privatColor2] = mysql_GetInt("privatcars", "Color2", "Name",PrivatCar[playerid][PlayerName]);
    PrivatCar[playerid][CarName] = mysql_GetString("privatcars", "Autoname", "Name",PrivatCar[playerid][PlayerName]);
    PrivatCar[playerid][modelid] = mysql_GetInt("privatcars", "modelid", "Name",PrivatCar[playerid][PlayerName]);
    PrivatCar[playerid][pcX] = mysql_GetFloat("privarcars", "CarX", "Name",PrivatCar[playerid][PlayerName]);
    PrivatCar[playerid][pcY] = mysql_GetFloat("privarcars", "CarY", "Name",PrivatCar[playerid][PlayerName]);
    PrivatCar[playerid][pcZ] = mysql_GetFloat("privarcars", "CarZ", "Name",PrivatCar[playerid][PlayerName]);
    PrivatCar[playerid][pcA] = mysql_GetFloat("privarcars", "CarA", "Name",PrivatCar[playerid][PlayerName]);
    PrivatCar[playerid][HaveKey] = mysql_GetInt("privarcars", "HaveKey", "Name",PrivatCar[playerid][PlayerName]);
    PrivatCar[playerid][vehid] = mysql_GetInt("privarcars", "vehid", "Name",PrivatCar[playerid][PlayerName]);
    meinauto[playerid] = CreateVehicle(PrivatCar[playerid][modelid],PrivatCar[playerid][pcX],PrivatCar[playerid][pcY],PrivatCar[playerid][pcZ],PrivatCar[playerid][pcA],PrivatCar[playerid][privatColor1],PrivatCar[playerid][privatColor2],0);
    }
    return 1;
    }
    stock SavePCars(playerid)
    {
    if(IsPlayerConnected(playerid) && !IsPlayerNPC(playerid))
    {
    GetPlayerName(playerid,PrivatCar[playerid][PlayerName], MAX_PLAYER_NAME);
    mysql_SetInt("privatcars","Color1",PrivatCar[playerid][privatColor1],"Name", PrivatCar[playerid][PlayerName]);
    mysql_SetInt("privatcars","Color2",PrivatCar[playerid][privatColor2],"Name", PrivatCar[playerid][PlayerName]);
    mysql_SetString("privatcars","Autoname",VehicleName[GetVehicleModel(GetPlayerVehicleID(playerid))-400],"Name", PrivatCar[playerid][PlayerName]);
    mysql_SetInt("privatcars","modelid",GetVehicleModel(meinauto[playerid]),"Name", PrivatCar[playerid][PlayerName]);
    mysql_SetFloat("privatcars","CarX",PrivatCar[playerid][pcX],"Name", PrivatCar[playerid][PlayerName]);
    mysql_SetFloat("privatcars","CarY",PrivatCar[playerid][pcY],"Name", PrivatCar[playerid][PlayerName]);
    mysql_SetFloat("privatcars","CarZ",PrivatCar[playerid][pcZ],"Name", PrivatCar[playerid][PlayerName]);
    mysql_SetFloat("privatcars","CarA",PrivatCar[playerid][pcA],"Name", PrivatCar[playerid][PlayerName]);
    mysql_SetInt("privatcars","vehid",PrivatCar[playerid][vehid],"Name", PrivatCar[playerid][PlayerName]);
    mysql_SetInt("privatcars","HaveKey",PrivatCar[playerid][HaveKey],"Name", PrivatCar[playerid][PlayerName]);
    }
    }


    //push: Help *Q* :cursing:

    Einmal editiert, zuletzt von Sh12 ()