pBanInfo[id][pBanUserName] = pName[id];
pBanInfo[id][pBanIP] = GetPlayerIp(id);
pBanInfo[id][pBanReason] = reason;
pBanInfo[id][pBanAdmin] = pName[playerid];
pBanInfo[id][pBanCheck] = 1;
format(str,sizeof(str), "INSERT INTO `serverbans` (Username,IP,Reason,Admin,CheckBan) VALUES ('%s', '%s', '%s', '%s', '%d')",pBanInfo[id][pBanUserName],pBanInfo[id][pBanIP],pBanInfo[id][pBanReason],pBanInfo[id][pBanAdmin],pBanInfo[id][pBanCheck]);
mysql_query(str);
D:\SA-MP Server Stuff\SA-MP Server\filterscripts\newworks.pwn(769) : error 006: must be assigned to an array D:\SA-MP Server Stuff\SA-MP Server\filterscripts\newworks.pwn(770) : warning 202: number of arguments does not match definition D:\SA-MP Server Stuff\SA-MP Server\filterscripts\newworks.pwn(770) : warning 202: number of arguments does not match definition D:\SA-MP Server Stuff\SA-MP Server\filterscripts\newworks.pwn(771) : error 006: must be assigned to an array D:\SA-MP Server Stuff\SA-MP Server\filterscripts\newworks.pwn(772) : error 006: must be assigned to an array Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors.
pBanInfo[id][pBanUserName] = pName[id];
pBanInfo[id][pBanIP] = GetPlayerIp(id);
pBanInfo[id][pBanReason] = reason;
pBanInfo[id][pBanAdmin] = pName[playerid];
Hello today I made my ban system but I got some errors.But in code I don`t see problem.If anyone see please reply here
![]() pawn Код:
Код:
D:\SA-MP Server Stuff\SA-MP Server\filterscripts\newworks.pwn(769) : error 006: must be assigned to an array D:\SA-MP Server Stuff\SA-MP Server\filterscripts\newworks.pwn(770) : warning 202: number of arguments does not match definition D:\SA-MP Server Stuff\SA-MP Server\filterscripts\newworks.pwn(770) : warning 202: number of arguments does not match definition D:\SA-MP Server Stuff\SA-MP Server\filterscripts\newworks.pwn(771) : error 006: must be assigned to an array D:\SA-MP Server Stuff\SA-MP Server\filterscripts\newworks.pwn(772) : error 006: must be assigned to an array Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Errors. ![]() |
enum bInfo
{
pBanUserName[64],
pBanIP,
pBanReason,
pBanAdmin[64],
pBanCheck,
};
new pBanInfo[MAX_PLAYERS][bInfo];
stock pName(playerid)
{
new playername[MAX_PLAYER_NAME],str[80];
GetPlayerName(playerid,playername,MAX_PLAYER_NAME);
format(str,80,"%s",playername);
return str;
}
pBanInfo[id][pBanUserName] = pName[id];
format(pBanInfo[id][pBanUserName],64,"%s",pName(id));
pBanInfo[id][pBanAdmin] = pName[playerid];
format(pBanInfo[id][pBanAdmin],64,"%s",pName(playerid));
769: pBanInfo[id][pBanUserName] = pName[id];
must be assigned to an array |