11.12.2016, 11:02
error 017: undefined symbol "botsifs"
error 009: invalid array size (negative, zero or out of bounds)
error 021: symbol already defined: "stringer"
(28532) : error 035: argument type mismatch (argument 2)
28554) : error 017: undefined symbol "NamePlayer"
(28554) : warning 215: expression has no effect
(28554) : error 001: expected token: ";", but found "]"
(28554) : error 029: invalid expression, assumed zero
(28554) : fatal error 107: too many error messages on one line
==========================================
CMD:addbotss(playerid,params[])
{
if(PlayerInfo[playerid][pAlcoInvenxua] < 12) return true;
if(sscanf(params,"ds[24]",params[0],params[1])) return SendClientMessage(playerid,-1,"Write /addbot [ID] [Nick]");
AddServerBot228(params[0],params[1]);
new randoms = random(;
if(randoms == 0) SetPlayerScore(params[0],1 );
if(randoms > 0) SetPlayerScore(params[0],randoms );
SetPlayerColor(params[0],random(20));
GetPlayerPos(playerid,BotInfos[ params[0] ][Xbot], BotInfos[ params[0] ][Ybot], BotInfos[ params[0] ][Zbot]);
SetPlayerColor(BotInfos[ params[0] ][botCre],random(20));
format(NamePlayer[ params[0] ], 30, "%s",params[1] );
format(PlayerIp[ params[0] ], 30, "%d.%d.%d.%d",random(140),random(76),random(65),ra ndom(14 );
return 1;
}
error 009: invalid array size (negative, zero or out of bounds)
error 021: symbol already defined: "stringer"
(28532) : error 035: argument type mismatch (argument 2)
28554) : error 017: undefined symbol "NamePlayer"
(28554) : warning 215: expression has no effect
(28554) : error 001: expected token: ";", but found "]"
(28554) : error 029: invalid expression, assumed zero
(28554) : fatal error 107: too many error messages on one line
==========================================
CMD:addbotss(playerid,params[])
{
if(PlayerInfo[playerid][pAlcoInvenxua] < 12) return true;
if(sscanf(params,"ds[24]",params[0],params[1])) return SendClientMessage(playerid,-1,"Write /addbot [ID] [Nick]");
AddServerBot228(params[0],params[1]);
new randoms = random(;
if(randoms == 0) SetPlayerScore(params[0],1 );
if(randoms > 0) SetPlayerScore(params[0],randoms );
SetPlayerColor(params[0],random(20));
GetPlayerPos(playerid,BotInfos[ params[0] ][Xbot], BotInfos[ params[0] ][Ybot], BotInfos[ params[0] ][Zbot]);
SetPlayerColor(BotInfos[ params[0] ][botCre],random(20));
format(NamePlayer[ params[0] ], 30, "%s",params[1] );
format(PlayerIp[ params[0] ], 30, "%d.%d.%d.%d",random(140),random(76),random(65),ra ndom(14 );
return 1;
}