05.02.2012, 20:43
(
Последний раз редактировалось cs_waller; 05.02.2012 в 22:35.
)
SOLVED
CMD:givegunall(playerid,params[])
{
for(new i = 0; i<MAX_PLAYERS; i++)
{
if(PlayerInfo[playerid][pAdmin[ < 5) return SCM(playerid,-1,"You must have level 5!");
if(sscanf(params,"dd",wep,ammo)) return SCM(playerid,-1,"ERROR:/givegunall [wepid] [ammo]");
if(wep < 0 ||wep == 19 || wep == 20 || wep == 21 || wep > 45) return SCM(playerid,01,"ERROR:This wep id is invalid");
if(ammo < 0) return SCM(playerid,-1,"ERROR:invalid ammo amount");
GivePlayerWeapon(i,wep,ammo);
}
return 1;
}
SendClientMessage(playerid
SendClientMessage(i
SendClientMessageToAll(i, COLOR_RED, "Aäìèíèñòðàòîð äàäå íà âñè÷êè ó÷àñòíèöè â åâåíòà îðúæèå");
Now it give me one error. error 035: argument type mismatch (argument 2)
Here is the code pawn Код:
|
SendClientMessageToAll(COLOR_RED, "Aäìèíèñòðàòîð äàäå íà âñè÷êè ó÷àñòíèöè â åâåíòà îðúæèå");
if (gun > 1||gun < 47) { for(new i = 0; i <= MAX_PLAYERS; i++) { if(GetPlayerColor(i) == 0x18E76BFF) GivePlayerWeapon(i, gun, gun); return 1; } SendClientMessage(playerid, COLOR_RED, "Администратор даде на всички играчи от евента оръжие."); }