21.01.2010, 10:04
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.
{
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.