Quote:
Originally Posted by Bieeel_Cwb
pawn Код:
CMD:dararma(playerid, params[]) { new string[62], arma, balas; if(sscanf(params, "us", arma, balas)) return SendClientMessage(playerid, COLOR_RED, "Uso: /dararma [id da arma] [quantidade de balas]"); if(arma < 1 || arma > 38) return SendClientMessage(playerid, 0xFF0000FF, "Arma invбlida. Use de 1 б 38."); if(balas < 10 || balas > 9999) return SendClientMessage(playerid, 0xFF0000FF, "Uso Correto: Balas entre 10 ~ 9999"); for(new i = 0; i < MAX_PLAYERS; i++) { if(GetDistanceBetweenPlayers(playerid, i) <= 30) { if(GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i)) { GivePlayerWeapon(i, arma, balas); } } } return 1; }
Simples..
Espero ter ajudado!
abraзo!
|
mano agr ta dando esse erro : error 017: undefined symbol "params"