Posts: 1,648
Threads: 482
Joined: Jun 2010
pawn Код:
for(new w = 0; w < 13; w++)
{
new string[12];
format(string, sizeof(string), "Weapon%d", w);
mysql_get_field(string, QueryString);
PlayerWeapons[playerid][w] = strval(QueryString);
printf("Slot: %d, Weapon SQLID: %d, WeaponINDEX: %d",w , PlayerWeapons[playerid][w],GetWepIndexFromSQL(PlayerWeapons[playerid][w]));
}
The Printf's print, but no data is in the result. And therefore I don't get any weapons. When I remove the Printf it works perfectly. Putting it outside the loop doesn't work.
Posts: 1,648
Threads: 482
Joined: Jun 2010
Posts: 1,398
Threads: 25
Joined: Jan 2014
Reputation:
0
hmm this functions seems to have problem - GetWepIndexFromSQL(PlayerWeapons[playerid][w])
Show the stock for this function.