- 0
MySQL Problem
-
Similar Content
-
Gamemode Hardgaming Versiunea a 4-a (no-mysql) 1 2
By n0dEv,
- luatil cai kald.
- hardgaming v4
- (and 90 more)
- 42 replies
- 11.750 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
By n0dEv,
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
Marius-Andrei
Salut,
Am o problema cu masinile de pe sql.
Am functia asta de bagat masini personale pe server:
[pawn]stock LoadCar()
{
new Query[255],atext[4],ltext[4];
for(new id; id < sizeof(CarInfo); id++)
{
format(Query, sizeof(Query), "SELECT * FROM vehicles WHERE CarID = %d", id);
mysql_query(Query);
mysql_store_result();
if(mysql_num_rows())
{
if(mysql_fetch_row(Query))
{
sscanf(Query, "p<|>e<iffffiis[25]s[25]iiiiiiiii>",CarInfo[id]);
if(CarInfo[id][cAlarm] == 1)
atext="ON";
else
atext="OFF";
if(CarInfo[id][cAlarm] == 1)
ltext="ON";
else
ltext="OFF";
printf("CarInfo: %d Owner:%s, Alarm:%s, Insurance:%d Locked: %s",id,CarInfo[id][cOwner],atext,CarInfo[id][cInsurance],ltext);
}
}
else
{
print("no car loaded");
return 0;
}
}
return 1;
} [/pawn]
Dar nu imi incarca nici o masina, imi zice "no car loaded";
Poate sa ma ajute careva?
Multumesc anticipat.
1 answer to this question
Recommended Posts