How to detect weapon?
#6

Quote:
Originally Posted by CAR
TOP
pawn Код:
new Dweapons[MAX_PLAYERS];
DEATH
pawn Код:
Dweapons[playerid] = 0;
DIALOG
pawn Код:
if(dialogid==DONATOR_DIALOG)
{
  if(response)
  {
   if(Dweapons >= 3) SendClientMessage(0xFF0000AA, "You can only get items 3 times a spawn");
   if(listitem==0)
   {
     GivePlayerWeapon(playerid, 28, 150);
     Dweapons[playerid] ++;
     return 1;
   }
   if(listitem==1)
   {
     GivePlayerWeapon(playerid, 30, 150);
     Dweapons[playerid] ++;
     return 1;
   }
   if(listitem==2)
   {
     GivePlayerWeapon(playerid, 26, 150);
     Dweapons[playerid] ++;
     return 1;
   }
   if(listitem==3)
   {
     GivePlayerWeapon(playerid, 32, 150);
     Dweapons[playerid] ++;
     return 1;
   }
   if(listitem==4)
   {
     GivePlayerWeapon(playerid, 29, 150);
     Dweapons[playerid] ++;
     return 1;
   }
   if(listitem==5)
   {
     GivePlayerWeapon(playerid, 27, 150);
     Dweapons[playerid] ++;
     return 1;
   }
   if(listitem==6)
   {
     GivePlayerWeapon(playerid,35,15);
     Dweapons[playerid] ++;
     return 1;
  }
}
I Edited it
I get the following 2 errors now,
Код:
error 033: array must be indexed (variable "Dweapons")
error 035: argument type mismatch (argument 2)
On this line:

pawn Код:
if(Dweapons >= 3) SendClientMessage(0xFF0000AA, "You can only get items 3 times a spawn");
Reply


Messages In This Thread
How to detect weapon? - by ruckfules99 - 30.04.2010, 23:28
Re: How to detect weapon? - by Retardedwolf - 30.04.2010, 23:40
Re: How to detect weapon? - by ruckfules99 - 01.05.2010, 00:17
Re: How to detect weapon? - by maij - 01.05.2010, 09:23
Re: How to detect weapon? - by CAR - 01.05.2010, 12:16
Re: How to detect weapon? - by ruckfules99 - 01.05.2010, 13:19
Re: How to detect weapon? - by ruckfules99 - 01.05.2010, 14:10
Re: How to detect weapon? - by ruckfules99 - 01.05.2010, 14:16
Re: How to detect weapon? - by ruckfules99 - 01.05.2010, 14:30

Forum Jump:


Users browsing this thread: 2 Guest(s)