IRC Bot problem [Rep +]
#1

Hello guys, how can I do something like this on IRC:

pawn Код:
enum PlayerData
{
    Test,
};
new PlayerInfo[MAX_PLAYERS][PlayerData];

I added this under my IRCCMD:slap
PlayerInfo[user][Test] = 0;
I tried this and failed
im using incognito's irc plugin

help me guys! + rep
Reply
#2

and if this script is not possible to work, can you guys tell me how to script it so that the functions will be the same
Reply
#3

*Bump*
what should I replace [MAX_PLAYERS] with?
on IRC for 'user'
Reply
#4

pawn Код:
new
     PlayerInfo[ MAX_PLAYERS ][ PlayerData ];

// ---

IRCCMD:test(botid, channel[], user[], host[], params[])
{
    PlayerInfo[user][Test] = 0;
    return 1;
}
// ---
IRCCMD:test2(botid, channel[], user[], host[], params[])
{
    if(PlayerInfo[user][Test] == 0)
    {
        IRC_GroupNotice(gGroupID, user, "It works!");
    }
    return 1;
}
Reply
#5

Quote:

error 033: array must be indexed (variable "user")

help me please
Reply
#6

Line?
Reply
#7

pawn Код:
both of these:
PlayerInfo[user][Test] = 0;
Reply
#8

What exactly do you need it for?
Reply
#9

well I want to make a user can only use this command 3 times.

EDITED:
P.S: Zhoom is my little cousin, he was using my laptop to post this. *facepalm*
Reply
#10

Quote:
Originally Posted by Min
Посмотреть сообщение
well I want to make a user can only use this command 3 times.

EDITED:
P.S: Zhoom is my little cousin, he was using my laptop to post this. *facepalm*
lol sorry Min i forgot to logout ur acc xD

ok dwane that is not the problem, it happens on this line:

pawn Код:
PlayerInfo[user][Test] = 0;
and
if(PlayerInfo[user][Test] == 0)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)