IRC SCRIPTING COMMAND HELP
#1

THIS IS MY IRC CMD

Quote:

IRCCMD:isban(botid, channel[], user[], host[], params[])
{
if (IRC_IsVoice(botid, channel, user))
{
new bnz[128];
new nameban = dUserINT(params).("Nameban");
if(!strlen(params))
{
format(bnz, sizeof(bnz), "(Error)Invalid params! [!isban [PlayerName]]");
IRC_Say(botid, channel, bnz);
return 1;
}
if(!udb_Exists(params))
{
format(bnz, sizeof(bnz), "(INFO)Player %s was not found in the database!", params);
IRC_Say(botid, channel, bnz);
return 1;
}
if(nameban == 1)
{
format(bnz, sizeof(bnz), "(INFO)Player %s was found in the database!", params);
IRC_Say(botid, channel, bnz);
return 1;
}
if(nameban == 0)
{
format(bnz, sizeof(bnz), "(INFO)Player %s was not found in the database!", params);
IRC_Say(botid, channel, bnz);
return 1;
}
}
return 1;
}

I want to Create To CHECK BAN RECORDS Like if u ban some one from in ban /adban (id) (reason) or IRC !ban (id) (reason)
i create this !isban to Want to know that the player is Banned From Whom, Reason ,DATE when i banned my self and type !isban (NAME) it said

Quote:

<~Nonamee> !isban Noname
<&CNR1> (INFO)Player Noname was not found in the database!

Help me to fix it
Thank you SAMP
Reply
#2

DUMP i need to fix this
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)