Quote:
Originally Posted by [NVC]Lost._.
Adapta aew:
pawn Код:
if(strcmp(cmd, "/banirnick", true) == 0) { new aname[MAX_PLAYER_NAME]; GetPlayerName(playerid, aname, MAX_PLAYER_NAME); format(file, sizeof(file), P_CONTAS, aname); if(pAdmin[playerid] == 5){ new tmp[256]; tmp = strtok(cmdtext, idx); format(file2, sizeof(file2), P_CONTAS, tmp); if(!strlen(tmp)) { SendClientMessage(playerid, Vermelho, "Digite: /banirnick [nick]"); return 1; } dini_IntSet("nickban.ini",tmp,1); SendClientMessage(playerid, Verde, "{0099FF}[x]{CCCCFF} Nick banido!"); format(string, sizeof(string), "{2F7AFC}[NVC Admin] O(A) Administrador(a) %s baniu o nick %s, agora ele nгo poderб mais entrar no servidor (CHUPA BCV -qq).", aname,tmp); SendClientMessageToAll(outraadm, string); return 1; } }
|
Nem pra ajudar tu nao presta pqp --'
seu code ta mal identado,
faltando return 1;
e ele usa sscanf
ou seja ela tera que usar ou
ou
pawn Код:
if(sscanf(params, "dd", id, motivo)) ........
entгo continuara com o erro, e voce nem passou a stock do nome do player ...
Se nao sabe ajudar nao ajuda vey ....