02.03.2011, 21:24
Nгo sei porque, mas estб dando erro nesse cуdigo.
Erros:
pawn Код:
if(strcmp("/ban", cmdtext, true, 6) == 0)
{
new Vazio1[128];
new Vazio2[128];
Vazio1 = KcmD(1, cmdtext);
Vazio2 = KcmD(2, cmdtext);
if(!strlen(Vazio1))
{
SendClientMessage(playerid, 0xFFFFFFFF, "[RLT]: /ban [id] [motivo]");
return 1;
}
if(!strlen(Vazio2))
{
SendClientMessage(playerid, 0xFFFFFFFF, "[RLT]: /ban [id] [motivo]");
return 1;
}
new name[MAX_PLAYER_NAME];
new msg[50];
new adm[MAX_PLAYER_NAME];
GetPlayerName(playerid,adm,sizeof(adm));
GetPlayerName(Vazio1,name,sizeof(name));//linha 428
format(msg,"[RLT]: %d foi banido por %d pelo motivo: %d",name,adm,Vazio2);//linha 249
dini_IntSet(ReturnFileUser(Vazio1),"bBan", 1);//linha 430
dini_IntSet(ReturnFileUser(Vazio1),"bBanM", Motivo);//linha 431
SendClientMessageToAll(CINZA4,msg);
Kick(Vazio1);//linha 433
return 1;
}
Код:
G:\Samp Server\gamemodes\RLB2.pwn(428) : error 035: argument type mismatch (argument 1) G:\Samp Server\gamemodes\RLB2.pwn(429) : error 035: argument type mismatch (argument 2) G:\Samp Server\gamemodes\RLB2.pwn(430) : error 035: argument type mismatch (argument 1) G:\Samp Server\gamemodes\RLB2.pwn(431) : error 035: argument type mismatch (argument 1) G:\Samp Server\gamemodes\RLB2.pwn(433) : error 035: argument type mismatch (argument 1)