Weapon saving
#2

Quote:
pawn Код:
if (strcmp("/pg", cmdtext, true, 10) == 0)
  {
   new ammo, gun;
   GetPlayerWeaponData(playerid,0,gun,ammo);
   PlayerInfo[playerid][pGun] == gun;
   PlayerInfo[playerid][pGunAmmo] == ammo;
  }
Those lines below are useless, and cause your warning.

Quote:

PlayerInfo[playerid][pGun] == gun;
PlayerInfo[playerid][pGunAmmo] == ammo;

If you use == it can be used only on if conditions.
So you should use =, not ==.


pawn Код:
PlayerInfo[playerid][pGun] = gun;
PlayerInfo[playerid][pGunAmmo] = ammo;

Reply


Messages In This Thread
Weapon saving - by (Jeff) - 21.01.2010, 10:04
Re: Weapon saving - by lameguy - 21.01.2010, 10:10
Re: Weapon saving - by notime - 21.01.2010, 10:44
Re: Weapon saving - by Correlli - 21.01.2010, 12:57
Re: Weapon saving - by (Jeff) - 21.01.2010, 17:42
Re: Weapon saving - by ravi80k - 23.01.2010, 23:45

Forum Jump:


Users browsing this thread: 1 Guest(s)