Please Help Me Guys
#1

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;
}
Reply
#2

1. Post your code formatted and inside of a code box , e.g
PHP код:
Code 
2. Show us which lines are the wrong ones, so we have to think less (not that it's to hard to think myself, but you are the one who wants help)
3. turn off smileys (wouldn't happen if you'd use a goddamn code box)

if you do that, people will most likely help you
Reply
#3

[/PHP]CMD:www2(playerid,params[])
{
if(sscanf(params, "dd", params[0], params[1] )) return SendClientMessage(playerid, "??????? /www2 [??] [??]");
for(new i = params[0]; i < params[1]; i++)
{
format(stringer, sizeof(stringer), "%i %s", i, GBostName[i]);
CallLocalFunction("cmd_addbotss", "is", playerid, stringer);
}

return 1;
}

native AddServerBot(id, nick[]);
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(8);
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(148) );
return 1;
}[/PHP]
Reply
#4

What the hell are you doing xD?

Just edit your original post and don't use 2 close tags

and don't just create another thread ...
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)