Quote:
Originally Posted by CAR
TOP
pawn Код:
new Dweapons[MAX_PLAYERS];
DEATH
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");