Weapon saving
#1

if (strcmp("/pg", cmdtext, true, 10) == 0)
{
new ammo, gun;
GetPlayerWeaponData(playerid,0,gun,ammo);
PlayerInfo[playerid][pGun] == gun;
PlayerInfo[playerid][pGunAmmo] == ammo;
}

I get 2 warnings saying "Invalid expression assumed 0" or somthin
I want it to set the pGun and pgunAmmo to whatever he has in his hands , then onplayerupdate this will be updated so when he relogs he will have the gun and ammo back help pl0x.
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)