07.04.2012, 17:11
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
How can i seperate them? Cause i got an warning that says
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(:
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;
}
pawn Код:
C:\Users\User\Desktop\Scripting\gamemodes\wassim.pwn(266) : warning 225: unreachable code
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(: