30.08.2014, 06:17
for(new i= 0; i < sizeof(pickup_Ammo); i++)
if(pickupid == pickup_Ammo[i])
{
new Float:ammo;
GetPlayerAmmo(playerid, ammo);
SetPlayerAmmo(playerid, ammo+25);
}
for(new i= 0; i < sizeof(pickup_Gun); i++)
if(pickupid == pickup_Gun[i])
{
new gun = random(40);
GetPlayerArmour(playerid, gun);
SetPlayerArmour(playerid, gun);
}
ERROR
D:\AlexaGaming\gamemodes\AlexaaGaming.pwn(237 : warning 202: number of arguments does not match definition
D:\AlexaGaming\gamemodes\AlexaaGaming.pwn(2379) : warning 213: tag mismatch
D:\AlexaGaming\gamemodes\AlexaaGaming.pwn(2379) : warning 202: number of arguments does not match definition
D:\AlexaGaming\gamemodes\AlexaaGaming.pwn(2385) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Warnings.
GetPlayerAmmo(playerid, ammo);
SetPlayerAmmo(playerid, ammo+25);
GetPlayerWeapon(playerid, gun);
GivePlayerWeapon(playerid, gun);
I Want to restore All Weapon Ammo if player pickup_Ammo
I Want to Give Random Weapon After Pickup_Gun
if(pickupid == pickup_Ammo[i])
{
new Float:ammo;
GetPlayerAmmo(playerid, ammo);
SetPlayerAmmo(playerid, ammo+25);
}
for(new i= 0; i < sizeof(pickup_Gun); i++)
if(pickupid == pickup_Gun[i])
{
new gun = random(40);
GetPlayerArmour(playerid, gun);
SetPlayerArmour(playerid, gun);
}
ERROR
D:\AlexaGaming\gamemodes\AlexaaGaming.pwn(237 : warning 202: number of arguments does not match definition
D:\AlexaGaming\gamemodes\AlexaaGaming.pwn(2379) : warning 213: tag mismatch
D:\AlexaGaming\gamemodes\AlexaaGaming.pwn(2379) : warning 202: number of arguments does not match definition
D:\AlexaGaming\gamemodes\AlexaaGaming.pwn(2385) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Warnings.
GetPlayerAmmo(playerid, ammo);
SetPlayerAmmo(playerid, ammo+25);
GetPlayerWeapon(playerid, gun);
GivePlayerWeapon(playerid, gun);
I Want to restore All Weapon Ammo if player pickup_Ammo
I Want to Give Random Weapon After Pickup_Gun