Der Ganze Stock und ne 10k Query ....
Finde ich schon komisch, 5000 und immernoch zu klein uff.
stock CreatePlayerCar(playerid,carid,Float:x,Float:y,Float:z,Float:angle,preis,nummernschild[])
{
new query[10048];
new farbe1 = random(99),
farbe2 = random(99),
Name[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name, sizeof(Name));
for(new slot = 0; slot < MAX_PLAYER_VEHICLES+5; slot++)
{
if(PlayerCar[playerid][slot][carNEUmodelid] == 0)
{
format(PlayerCar[playerid][slot][Besitzer],24,"%s",Name);
PlayerCar[playerid][slot][carNEUmodelid] = carid;
PlayerCar[playerid][slot][posxNEU] = x;
PlayerCar[playerid][slot][posyNEU] = y;
PlayerCar[playerid][slot][poszNEU] = z;
PlayerCar[playerid][slot][posaNEU] = angle;
PlayerCar[playerid][slot][Preis] = preis;
PlayerCar[playerid][slot][VirtualWorld] = 0;
PlayerCar[playerid][slot][Interior] = 0;
PlayerCar[playerid][slot][Colour1] = farbe1;
PlayerCar[playerid][slot][Colour2] = farbe2;
PlayerCar[playerid][slot][Abgeschlossen] = 1; // 1 = Abgeschlossen | 0 = Aufgeschlossen
PlayerCar[playerid][slot][NeuAutoHP] = 1000.0;
PlayerCar[playerid][slot][Paintjob] = -1;
PlayerCar[playerid][slot][Spoiler] = -1;
PlayerCar[playerid][slot][Hood] = -1;
PlayerCar[playerid][slot][Roof] = -1;
PlayerCar[playerid][slot][Sideskirt] = -1;
PlayerCar[playerid][slot][Lamps] = -1;
PlayerCar[playerid][slot][Nitro] = -1;
PlayerCar[playerid][slot][Exhaust] = -1;
PlayerCar[playerid][slot][Wheels] = -1;
PlayerCar[playerid][slot][Stereo] = -1;
PlayerCar[playerid][slot][Hydraulics] = -1;
PlayerCar[playerid][slot][FrontBumper] = -1;
PlayerCar[playerid][slot][RearBumper] = -1;
PlayerCar[playerid][slot][VentRight] = -1;
PlayerCar[playerid][slot][VentLeft] = -1;
PlayerCar[playerid][slot][carsellid] = slot;
PlayerCar[playerid][slot][Abgeschleppt] = 0;
PlayerCar[playerid][slot][AbgeschlepptPreis] = 0;
strmid(PlayerCar[playerid][slot][AbgeschlepptGrund],"Keinen",0,strlen("Keinen"),64);
strmid(PlayerCar[playerid][slot][Nummernschild],nummernschild,0,strlen(nummernschild),64);
PlayerCar[playerid][slot][Vehicle] = CreateVehicle(carid,x,y,z,angle,farbe1,farbe2,-1);
format(query,sizeof(query),"INSERT INTO `playercar`(`name`,`slot`,`modelid`,`posx`,`posy`,`posz`,`posangle`,`preis`,`vw`,`interior`,`col1`,`col2`,`abgeschlossen`,`hp`,`nummernschild`,`carsellid`,`abgeschleppt`,`abgeschlepptPreis`,`abgeschlepptGrund`) VALUES ('%s','%d','%d','%f','%f','%f','%f','%d','%d','%d','%d','%d','%d','%f','%s','%d','0','0','Keinen')",
PlayerCar[playerid][slot][Besitzer],slot,carid,x,y,z,angle,preis,PlayerCar[playerid][slot][VirtualWorld],PlayerCar[playerid][slot][Interior],farbe1,farbe2,PlayerCar[playerid][slot][NeuAutoHP],nummernschild,PlayerCar[playerid][slot][carsellid]);
printf("Error-Query: %s",query);
mysql_function_query(MYSQLVerbindung,query,false,"","");
return true;
}
}
return true;
}