Weapon not loaded.
#1

Hi I have problem can someone help me.Not loaded weapon.

Weapon Saving Script:

Код:
GetPlayerWeaponData(playerid,2,PlayerWeapon[playerid][Ginklas],PlayerWeapon[playerid][Kulkos]);
      new String [ 70 ];
      format ( String,70, "UPDATE `players` SET `Ginklas` = %d, `Kulkos` = %d  WHERE `Vardas` = '%s'",
      PlayerWeapon[playerid][Ginklas],
      PlayerWeapon[playerid][Kulkos],
      PlayerName(playerid)
      );
      mysql_query ( String );
Weapon Load Script:

Код:
mysql_fetch_field_row ( value, "Ginklas" );
      PlayerWeapon[playerid][Ginklas] = strval ( value );
      mysql_fetch_field_row ( value, "Kulkos" );
      PlayerWeapon[playerid][Kulkos] = strval ( value );
      GivePlayerWeapon(playerid,PlayerWeapon[playerid][Ginklas],PlayerWeapon[playerid][Kulkos]);
Reply
#2

show us your full weapon load script
Reply
#3

This is full script.
Reply
#4

Huumm, make sure you are connected to MySQL while doing this.
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)