Problems with Picksup,not Separable HELP Me please,get +1rep and much LOVE!
#1

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;
}
Reply
#2

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.
Reply
#3

Wow <3 u,+1rep!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)