Hello There, Guest! Login or Register


All the help I need
#16
(05-08-2009, 01:32 AM)speedruntrainer link Wrote: :-X what's wrong with this? o.O

Code:
#include <a_samp>

new Health;
new Health2;
new Armor;
new Sawnoff;
new Tec9;

public OnGameModeInit()
{

Health = CreatePickup(1240, 2, 2000.7, 1568.0, 15.3);  //Health
Health2 = CreatePickup(1240, 2, 2099.9, 2186.5, 13.4); //Health
Armor = CreatePickup(1242, 2, 2100, 2184,.3, 13.4);  //Armor
Sawnoff = CreatePickup(350, 2, 2100.8, 2168.8, 13.4); //Sawnoff
Tec9 = CreatePickup(372, 2, 2100.9, 2170.9, 10.8); //Tec9
return 1;
}

public OnPlayerPickupPickup(playerid, pickupid);
{

if(pickupid == Health)
{
GivePlayerHealth(playerid, 1240, 100);
}
else if(pickupid == Health2)
{
GivePlayerHealth(playerid, 1240, 100);
}
else if(pickupid == Armor)
{
GivePlayerArmor(playerid, 1242, 100);
}
else if(pickupid == Sawnoff)
{
GivePlayerWeapon(playerid, 350, 100);
}
else if(pickupid == Tec9)
{
GivePlayerWeapon(playerid, 372, 1000);
}
return 1;

Code:
C:\Users\Nel\Desktop\Mijn spullen\GTA Games\Server test gta\filterscripts\pickups.pwn(14) : error 001: expected token: "-identifier-", but found "-integer value-"
C:\Users\Nel\Desktop\Mijn spullen\GTA Games\Server test gta\filterscripts\pickups.pwn(14) : warning 215: expression has no effect
C:\Users\Nel\Desktop\Mijn spullen\GTA Games\Server test gta\filterscripts\pickups.pwn(14) : warning 215: expression has no effect
C:\Users\Nel\Desktop\Mijn spullen\GTA Games\Server test gta\filterscripts\pickups.pwn(14) : error 001: expected token: ";", but found ")"
C:\Users\Nel\Desktop\Mijn spullen\GTA Games\Server test gta\filterscripts\pickups.pwn(14) : error 029: invalid expression, assumed zero
C:\Users\Nel\Desktop\Mijn spullen\GTA Games\Server test gta\filterscripts\pickups.pwn(14) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Could you paste your full filterscript or gamemode or whatever it is to pastebin.com? That way it will be easier to find the errors for you.
Reply


Messages In This Thread
All the help I need - by speedruntrainer - 05-05-2009, 10:41 PM
Re: A very important question. - by Shark - 05-05-2009, 11:21 PM
Re: A very important question. - by FarePak - 05-06-2009, 03:02 AM
Re: A very important question. - by Matthias - 05-06-2009, 05:51 AM
Re: A very important question. - by TeEjAy - 05-06-2009, 06:44 AM
Re: A very important question. - by Matthias - 05-06-2009, 02:23 PM
Re: All the help I need - by speedruntrainer - 05-07-2009, 04:16 PM
Re: All the help I need - by FarePak - 05-07-2009, 04:52 PM
Re: All the help I need - by Matthias - 05-07-2009, 05:28 PM
Re: All the help I need - by FarePak - 05-07-2009, 05:44 PM
Re: All the help I need - by Mark - 05-07-2009, 07:31 PM
Re: All the help I need - by speedruntrainer - 05-08-2009, 01:32 AM
Re: All the help I need - by FarePak - 05-08-2009, 06:54 AM
Re: All the help I need - by Mark - 05-08-2009, 11:04 AM
Re: All the help I need - by speedruntrainer - 05-08-2009, 01:14 PM
Re: All the help I need - by FarePak - 05-08-2009, 01:43 PM
Re: All the help I need - by speedruntrainer - 05-08-2009, 01:54 PM
Re: All the help I need - by FarePak - 05-08-2009, 02:23 PM