[Ajuda] Preciso muito de ajuda!
#8

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

pawn Код:
if(isnull(params))
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 ....
Reply


Messages In This Thread
Preciso muito de ajuda! - by djlexvi - 15.09.2012, 03:43
Re: Preciso muito de ajuda! - by Coreia - 15.09.2012, 03:51
Re: Preciso muito de ajuda! - by Maklister - 15.09.2012, 03:54
Re: Preciso muito de ajuda! - by djlexvi - 15.09.2012, 04:02
Re: Preciso muito de ajuda! - by Maklister - 15.09.2012, 04:05
Re: Preciso muito de ajuda! - by djlexvi - 15.09.2012, 04:14
Re: Preciso muito de ajuda! - by Maklister - 15.09.2012, 04:15
Re: Preciso muito de ajuda! - by Maklister - 15.09.2012, 04:32
Re: Preciso muito de ajuda! - by Maklister - 15.09.2012, 04:38
Re: Preciso muito de ajuda! - by zSuYaNw - 15.09.2012, 04:59

Forum Jump:


Users browsing this thread: 1 Guest(s)