SA-MP Forums Archive
Weapon not loaded. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Weapon not loaded. (/showthread.php?tid=302513)



Weapon not loaded. - Montis. - 09.12.2011

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]);



Re: Weapon not loaded. - T0pAz - 09.12.2011

show us your full weapon load script


Re: Weapon not loaded. - Montis. - 09.12.2011

This is full script.


Re: Weapon not loaded. - K9Alex - 09.12.2011

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