Store an IP. Error: Must be assigned to an array
#1

Hello,

I have a small problem with storing an IP. I am having the error "Mustb e assigned to an array". I tried multiple things to fix this, but it didn't work out.

This is the code I am using at the moment:

pawn Код:
new ReconnectIP[MAX_PLAYERS];

                GetPlayerIp(playerid, PlayerIP, sizeof(PlayerIP));
                format(IP2, sizeof(IP2), "%s", PlayerIP);
                ReconnectIP[playerid] = IP2;
The error is at this line, ofcourse:
Код:
    			ReconnectIP[playerid] = IP2;
Thank you for reading and I hope you can help me.
Reply


Messages In This Thread
Store an IP. Error: Must be assigned to an array - by Biesmen - 22.01.2011, 15:51
Re: Store an IP. Error: Must be assigned to an array - by KuHS - 22.01.2011, 15:57
Re: Store an IP. Error: Must be assigned to an array - by Outcast - 22.01.2011, 15:57
Re: Store an IP. Error: Must be assigned to an array - by Saurik - 22.01.2011, 15:58

Forum Jump:


Users browsing this thread: 1 Guest(s)