Problems with Picksup,not Separable HELP Me please,get +1rep and much LOVE!
#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


Messages In This Thread
Problems with Picksup,not Separable HELP Me please,get +1rep and much LOVE! - by Issam - 16.09.2011, 21:58
Re: Problems with Picksup,not Separable HELP Me please,get +1rep and much LOVE! - by antonio112 - 16.09.2011, 21:59
Re: Problems with Picksup,not Separable HELP Me please,get +1rep and much LOVE! - by Issam - 16.09.2011, 22:06

Forum Jump:


Users browsing this thread: 1 Guest(s)