2 Things
#1

This is my last thread today, I'm not spamming or anything. :/

First question:

I've made 2 pickups, and in OnPlayerPickupPickUp(playerid, pickupid);
I've typed this
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == PICKUP)
    {
    SendClientMessage(playerid, 0x00FF00AA, "You pickup'd an ak400! It respawns after death");
    GivePlayerWeapon(playerid, 30, 500);
    }
    return 1;
    if(pickupid == PICKUP2) // this is the line 266
    {
    SendClientMessage(playerid, 0x00FF00AA,"This is house1, type /enter_house1 to enter it!");
    }
    return 1;
}
How can i seperate them? Cause i got an warning that says
pawn Код:
C:\Users\User\Desktop\Scripting\gamemodes\wassim.pwn(266) : warning 225: unreachable code
That's my first question.


My Second question:

How Can I make ranks?
and how I can make people buy ranks?
Ex:
/buy rank
SetPlayerRank(playerid, 1);
If that's possible please tell me


-
Again, and again, I apologize for posting 2 threads today (less than 1 hour), so please ignore this, and help me!
Thanks
TrawlTrawl
Promise you, last one today(:
Reply


Messages In This Thread
2 Things - by Trawltrawl - 07.04.2012, 17:11
Re: 2 Things - by Kindred - 07.04.2012, 17:14
Re: 2 Things - by BleverCastard - 07.04.2012, 17:15
Re: 2 Things - by Trawltrawl - 07.04.2012, 17:16
Re: 2 Things - by BleverCastard - 07.04.2012, 17:18
Re: 2 Things - by Trawltrawl - 07.04.2012, 17:50

Forum Jump:


Users browsing this thread: 1 Guest(s)