Hey,
Nun meld ich mal wieda nach einer Langen Zeit!
Mein problem ist: Ich arbeite ja mit MySQL auch wen ihr vll keine Ahnung von MySQL habt
könnt ihr mir Trozdem helfen, und zwar.
Das Pickup Spawnt nicht ich gib euch mal log und Code
[18:56:49] Creating 1 pickups
Das steht in der Log.
stock CreatePickupEx(PickupID,Type,Float:X,Float:Y,Float:Z,HouseID)
{
new PickupsID = CreatePickup(PickupID,Type,X,Y,Z,200);
Pickups[PickupsID]=HouseID;
}
Meine Stock
new PickupCount = samp_mysql_num_rows();
printf("Creating %d pickups",PickupCount);
for(new Pickupes = 0; Pickupes<PickupCount; Pickupes++)
{
format(Query,sizeof(Query),"SELECT `PickupID` FROM `pickups` LIMIT %d,1",Pickupes);
new PickupID=strval(GetMySQLResult(Query));
if(PickupID>=1272 && PickupID<=1273)
{
format(Query,sizeof(Query),"SELECT `Type` FROM `pickups` LIMIT %d,1",Pickupes);
new Type=strval(GetMySQLResult(Query));
format(Query,sizeof(Query),"SELECT `X` FROM `pickups` LIMIT %d,1",Pickupes);
X=floatstr(GetMySQLResult(Query));
format(Query,sizeof(Query),"SELECT `Y` FROM `pickups` LIMIT %d,1",Pickupes);
Y=floatstr(GetMySQLResult(Query));
format(Query,sizeof(Query),"SELECT `Z` FROM `pickups` LIMIT %d,1",Pickupes);
Z=floatstr(GetMySQLResult(Query));
format(Query,sizeof(Query),"SELECT `HouseID` FROM `pickups` LIMIT %d,1",Pickupes);
new HouseID=strval(GetMySQLResult(Query));
CreatePickupEx(PickupID,Type,X,Y,Z,HouseID);
}
else
{
printf("Invalid Pickup ID (%d) in MySQL table `pickups` row %d",PickupID,(Pickupes+1));
}
}
Mein Code!
Hoffe mir kann jemand helfen, das problem ist eigentlich nur das die Pickups ned Angezeigt werden!