help warning
#1

if(!strcmp(cmd, "/unban", true))
{
if(PlayerInfo[playerid][Level] >= 4)
{
new pip[128], string[64];
pip = strtok(cmdtext, idx);
if(!strlen(pip)) return SendClientMessage(playerid, COLOR_RED, "Usage: /unbanip <IP>");
format(string,sizeof(string),"unbanip %s", pip);
SendRconCommand(string);
}
else Msg(playerid,COLOR_RED,"* You can not use this command !");
return 1;
}




C:\Documents and Settings\Rihards\My Documents\papalis.pwn(2560) : error 047: array sizes do not match, or destination array is too small
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Help me with error
Reply
#2

First of all a ip is only 16 cells.
Reply
#3

The string is 64 cells while you tell it to store something with 128 cells. Change pip to 16
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)