07.12.2010, 14:56
Why my Script dont Create the Cars ?
Код:
public AutosLaden(vehicleid,playerid) { new Query[200]; format(Query, sizeof(Query), "SELECT * FROM `autos`"); mysql_query(Query); mysql_store_result(); new line[300]; if(mysql_fetch_row(line)) { new data[7]; sscanf(line, "ddddddd", data[0],data[1],data[2],data[3],data[4],data[5],data[6]); SetPVarInt(playerid, "carid", data[0]); SetPVarInt(playerid, "posx", data[1]); SetPVarInt(playerid, "posy", data[2]); SetPVarInt(playerid, "posz", data[3]); SetPVarInt(playerid, "poszy", data[4]); SetPVarInt(playerid, "farbe1", data[5]); SetPVarInt(playerid, "farbe2", data[6]); mysql_free_result(); AddStaticVehicle(data[0],data[1],data[2],data[3],data[4],data[5],data[6]); } return 1; }