Problems with Picksup,not Separable HELP Me please,get +1rep and much LOVE! - 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: Problems with Picksup,not Separable HELP Me please,get +1rep and much LOVE! (
/showthread.php?tid=283823)
Problems with Picksup,not Separable HELP Me please,get +1rep and much LOVE! -
Issam - 16.09.2011
Hi guys.
Well,today i have this pawn problem.
I Ve made a pickup,if you enter the pickup,you get Teleported to All Saints General hospital
but the problem is the new Pickup with the old pickup of, entering it and getting a Body armour,got mixed,dunno how or why?
Anyway,when i enter on the pickup,i gets TPed inside and i get a Body armour,if you help me you get +1rep and MUCH LOVE!
Here are the lines:
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{ //Bodyarmour pickup
if (pickupid == mypickup)
SendClientMessage(playerid, 0xAFAFAFAA, "You found a Body Armour.");
SetPlayerArmour(playerid, 100);
//Exit pickup of MEDICS
if(pickupid == mypickup2)
SendClientMessage(playerid, 0xAFAFAFAA, "You left the Hospital.");
SetPlayerPos(playerid,1172.9222,-1325.4296,15.3988);
return 1;
}
Re: Problems with Picksup,not Separable HELP Me please,get +1rep and much LOVE! -
antonio112 - 16.09.2011
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{ //Bodyarmour pickup
if (pickupid == mypickup)
{
SendClientMessage(playerid, 0xAFAFAFAA, "You found a Body Armour.");
SetPlayerArmour(playerid, 100);
}
//Exit pickup of MEDICS
else if(pickupid == mypickup2)
{
SendClientMessage(playerid, 0xAFAFAFAA, "You left the Hospital.");
SetPlayerPos(playerid,1172.9222,-1325.4296,15.3988);
}
return 1;
}
This should work. The idea is that you forgot to use
{ } after the
if statement.
Re: Problems with Picksup,not Separable HELP Me please,get +1rep and much LOVE! -
Issam - 16.09.2011
Wow <3 u,+1rep!