SA-MP Forums Archive
Error with pickups - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Error with pickups (/showthread.php?tid=430262)



Error with pickups - icko202 - 13.04.2013

i get this:
C:\Users\DELL\Desktop\TDM 1.1\gamemodes\Test.pwn(33 : error 010: invalid function or declaration
C:\Users\DELL\Desktop\TDM 1.1\gamemodes\Test.pwn(351) : error 010: invalid function or declaration
C:\Users\DELL\Desktop\TDM 1.1\gamemodes\Test.pwn(354) : error 010: invalid function or declaration
C:\Users\DELL\Desktop\TDM 1.1\gamemodes\Test.pwn(357) : error 010: invalid function or declaration
C:\Users\DELL\Desktop\TDM 1.1\gamemodes\Test.pwn(359) : error 010: invalid function or declaration
C:\Users\DELL\Desktop\TDM 1.1\gamemodes\Test.pwn(126) : warning 204: symbol is assigned a value that is never used: "mafiapick"
C:\Users\DELL\Desktop\TDM 1.1\gamemodes\Test.pwn(127) : warning 204: symbol is assigned a value that is never used: "mafiapick1"

Here is the code:
new mafiapick;
new mafiapick1;

126 - mafiapick = CreatePickup(1242, 2, 1206.3400, -1648.7781, 13.9463,-1);
127 - mafiapick1 = CreatePickup(1240, 2, 1206.3400, -1648.7781, 13.9463,-1);

338 - if(pickupid == mafiapick1)
{
SetPlayerArmour(playerid, 100);
GivePlayerWeapon(playerid, 24, 15000);
GivePlayerWeapon(playerid, 26, 15000);
GivePlayerWeapon(playerid, 32, 15000);
GivePlayerWeapon(playerid, 31, 15000);
GivePlayerWeapon(playerid, 34, 15000);
SetPlayerSkillLevel(playerid, 2, 1000);
SetPlayerSkillLevel(playerid, 4, 1000);
SetPlayerSkillLevel(playerid, 7, 1000);
SetPlayerSkillLevel(playerid, 9, 1000);
SetPlayerSkillLevel(playerid, 10, 1000);
351 - return 1;
}

354 - if(pickupid == mafiapick)
{
SetPlayerHealth(playerid, 100);
357 - return 1;
}
359 - return 1;
}


(numbers are the lines)


Re: Error with pickups - icko202 - 13.04.2013

FIXED IT!