How to detect weapon?
#3

This is what I have and i'm getting errors


Top of script:

pawn Код:
new Dweapons;
Onplayerspawn:

pawn Код:
Dweapons = 0;
Onplayerdeath:

pawn Код:
Dweapons = 0;
My Ondialogresponse:

pawn Код:
if(dialogid==DONATOR_DIALOG)
{
if(response)
{
if(listitem==0)
{
GivePlayerWeapon(playerid, 28, 150);
Dweapons ++;
return 1;
}
if(listitem==1)
{
GivePlayerWeapon(playerid, 30, 150);
Dweapons ++;
return 1;
}
if(listitem==2)
{
GivePlayerWeapon(playerid, 26, 150);
Dweapons ++;
return 1;
}
if(listitem==3)
{
GivePlayerWeapon(playerid, 32, 150);
Dweapons ++;
return 1;
}
if(listitem==4)
{
GivePlayerWeapon(playerid, 29, 150);
Dweapons ++;
return 1;
}
if(listitem==5)
{
GivePlayerWeapon(playerid, 27, 150);
Dweapons ++;
return 1;
}
if(listitem==6)
{
GivePlayerWeapon(playerid,35,15);
Dweapons ++;
return 1;
}
else
if(Dweapons > 3) SendClientMessage(0xFF0000AA, "You can only get items 3 times a spawn");
return 1;
}
}

ERRORS:

Код:
(13259) : error 035: argument type mismatch (argument 2)
ON:

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: 1 Guest(s)