Set Array to Array error
#1

Hi, im setting array to array and output is error. Code:

new ipvar[1000];
public OnRconLoginAttempt(ip[], password[], success)
{
ipvar[ip] = ipvar[ip] + 1;//error 033: array must be indexed (variable "ip")
return 1;
}

Thx better
Reply
#2

What exactly are you trying to achieve there?
Reply
#3

its the adding vars for IP
Reply
#4

Are you trying to store all IPs in one array? You can try strins function.
Reply
#5

How to use strins Im tested this also printing error:
new ipp;
strins(ipp, ip, 50);
error:
error 035: argument type mismatch (argument 1)
Reply
#6

pawn Код:
new ipp[ 256 ];
public OnRconLoginAttempt( ip[ ], password[ ], success )
{
    strins( ipp, ip, 15 );
    return 1;
}
Reply
#7

Ahhh...
ipvar[ipp] = ipvar[ipp] + 1;//error 033: array must be indexed (variable "ipp")
Reply
#8

Please, how to fix :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)