20.03.2013, 16:16
Have problem with weapons loading in mysql, saving is very good but when i need to load it it's no use, script:
pawn Code:
GivePlayerWeapon( playerid, mysql_fetch_field_row( fetch, "Ginklas0" ), mysql_fetch_field_row( fetch, "Ammo0" ) );
GivePlayerWeapon( playerid, mysql_fetch_field_row( fetch, "Ginklas1" ), mysql_fetch_field_row( fetch, "Ammo1" ) );
GivePlayerWeapon( playerid, mysql_fetch_field_row( fetch, "Ginklas2" ), mysql_fetch_field_row( fetch, "Ammo2" ) );
GivePlayerWeapon( playerid, mysql_fetch_field_row( fetch, "Ginklas3" ), mysql_fetch_field_row( fetch, "Ammo3" ) );
GivePlayerWeapon( playerid, mysql_fetch_field_row( fetch, "Ginklas4" ), mysql_fetch_field_row( fetch, "Ammo4" ) );
GivePlayerWeapon( playerid, mysql_fetch_field_row( fetch, "Ginklas5" ), mysql_fetch_field_row( fetch, "Ammo5" ) );
GivePlayerWeapon( playerid, mysql_fetch_field_row( fetch, "Ginklas6" ), mysql_fetch_field_row( fetch, "Ammo6" ) );
GivePlayerWeapon( playerid, mysql_fetch_field_row( fetch, "Ginklas7" ), mysql_fetch_field_row( fetch, "Ammo7" ) );
GivePlayerWeapon( playerid, mysql_fetch_field_row( fetch, "Ginklas8" ), mysql_fetch_field_row( fetch, "Ammo8" ) );
GivePlayerWeapon( playerid, mysql_fetch_field_row( fetch, "Ginklas9" ), mysql_fetch_field_row( fetch, "Ammo9" ) );
GivePlayerWeapon( playerid, mysql_fetch_field_row( fetch, "Ginklas10" ), mysql_fetch_field_row( fetch, "Ammo10" ) );
GivePlayerWeapon( playerid, mysql_fetch_field_row( fetch, "Ginklas11" ), mysql_fetch_field_row( fetch, "Ammo11" ) );