Hallo Community,
Ich will Fahrzeuge aus meiner mysql DB laden.. aber es will nicht so wie ich will..
Code
C:\Users\Marcel\Desktop\MySQL-Skript.pwn(648) : warning 219: local variable "VehicleID" shadows a variable at a preceding level
C:\Users\Marcel\Desktop\MySQL-Skript.pwn(648) : warning 219: local variable "ModelID" shadows a variable at a preceding level
C:\Users\Marcel\Desktop\MySQL-Skript.pwn(648) : warning 219: local variable "Color1" shadows a variable at a preceding level
C:\Users\Marcel\Desktop\MySQL-Skript.pwn(648) : warning 219: local variable "Color2" shadows a variable at a preceding level
C:\Users\Marcel\Desktop\MySQL-Skript.pwn(648) : warning 219: local variable "Price" shadows a variable at a preceding level
C:\Users\Marcel\Desktop\MySQL-Skript.pwn(648) : warning 219: local variable "X" shadows a variable at a preceding level
C:\Users\Marcel\Desktop\MySQL-Skript.pwn(648) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\Users\Marcel\Desktop\MySQL-Skript.pwn(648) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\Users\Marcel\Desktop\MySQL-Skript.pwn(648) : warning 219: local variable "R" shadows a variable at a preceding level
C:\Users\Marcel\Desktop\MySQL-Skript.pwn(652) : error 022: must be lvalue (non-constant)
C:\Users\Marcel\Desktop\MySQL-Skript.pwn(652) : error 017: undefined symbol "ModelI2"
C:\Users\Marcel\Desktop\MySQL-Skript.pwn(648) : warning 203: symbol is never used: "R"
C:\Users\Marcel\Desktop\MySQL-Skript.pwn(648) : warning 203: symbol is never used: "Z"
C:\Users\Marcel\Desktop\MySQL-Skript.pwn(648) : warning 203: symbol is never used: "Y"
C:\Users\Marcel\Desktop\MySQL-Skript.pwn(648) : warning 203: symbol is never used: "X"
C:\Users\Marcel\Desktop\MySQL-Skript.pwn(648) : warning 203: symbol is never used: "Price"
C:\Users\Marcel\Desktop\MySQL-Skript.pwn(648) : warning 203: symbol is never used: "Color2"
C:\Users\Marcel\Desktop\MySQL-Skript.pwn(648) : warning 203: symbol is never used: "Color1"
C:\Users\Marcel\Desktop\MySQL-Skript.pwn(648) : warning 203: symbol is never used: "ModelID"
C:\Users\Marcel\Desktop\MySQL-Skript.pwn(648) : warning 203: symbol is never used: "VehicleID"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
Alles anzeigen
SQL
stock LoadFahrzeuge()
{
new str[512];
mysql_query("SELECT * FROM `autohaus_autos`");
mysql_store_result();
//new query[256];
new VehicleID, ModelID,Color1,Color2,Price; new Float:X,Float:Y,Float:Z,Float:R;
while(mysql_fetch_row(str))
{
sscanf(str, "p<|>ddffffddd",VehicleID,ModelID,X,Y,Z,R,Color1,Color2,Price);
VehicleID = AddStaticVehicle(ModelI2,X,Y,Z,R,Color1,Color2);
}
mysql_free_result();
return 1;
}
Alles anzeigen
Ich hoffe ihr könnt mir da weiter Helfen
PS: Ich kenne mich noch nicht so gut aus mit mysql..