01.05.2010, 00:17
This is what I have and i'm getting errors
Top of script:
Onplayerspawn:
Onplayerdeath:
My Ondialogresponse:
ERRORS:
ON:
Top of script:
pawn Код:
new Dweapons;
pawn Код:
Dweapons = 0;
pawn Код:
Dweapons = 0;
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)
pawn Код:
if(Dweapons > 3) SendClientMessage(0xFF0000AA, "You can only get items 3 times a spawn");