SA-MP Forums Archive
help warning - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help warning (/showthread.php?tid=210255)



help warning - dcrgn - 12.01.2011

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


Re: help warning - hanzen - 12.01.2011

First of all a ip is only 16 cells.


Re: help warning - Kaylux - 12.01.2011

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