Help in making function...
#3

Thanks Man !

As you really helped me alot so I will not hesitate you to ask one more question

I am getting Problem in /kick Command...

here it is:

pawn Код:
CMD:kick(playerid,params[])
{
    if(pInfo[playerid][pAdminLevel]> 1 ) return 0;
    new giveplayerid;
    Name1[MAX_PLAYER_NAME]Name2[MAX_PLAYER_NAME]; //Line 807
    if(sscanf(params,"us[128]",giveplayerid,params)) return SendClientMessage(playerid, COLOR_RED1,"[ ! ] USAGE: /kick <playerid/partofname> <reason>");
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid, COLOR_RED,"[ ! ] Player is not connected !");
    GetPlayerName(playerid,Name1,sizeof(Name1));
    GetPlayerName(giveplayerid,Name2,sizeof(Name2));
    format(params,129, "[ ! ] %s has been kicked by %s for %s",Name2,Name1,params);
    SendClientMessageToAll(COLOR_WS,params);
    Kick(giveplayerid);
    return 1;
}

Finding these Errors:
pawn Код:
E:\SCRIPT\gamemodes\Dafuq.pwn(807) : error 017: undefined symbol "Name1"
E:\SCRIPT\gamemodes\Dafuq.pwn(807) : warning 215: expression has no effect
E:\SCRIPT\gamemodes\Dafuq.pwn(807) : error 001: expected token: ";", but found "]"
E:\SCRIPT\gamemodes\Dafuq.pwn(807) : error 029: invalid expression, assumed zero
E:\SCRIPT\gamemodes\Dafuq.pwn(807) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Reply


Messages In This Thread
Help in making function... - by MAFIAWARS - 28.09.2013, 13:05
Re: Help in making function... - by Konstantinos - 28.09.2013, 13:15
Re: Help in making function... - by MAFIAWARS - 28.09.2013, 13:48
Re: Help in making function... - by Patrick - 28.09.2013, 13:54
Re: Help in making function... - by Konstantinos - 28.09.2013, 13:55
Re: Help in making function... - by MAFIAWARS - 28.09.2013, 14:03
Re: Help in making function... - by Konstantinos - 28.09.2013, 14:05
Re: Help in making function... - by MAFIAWARS - 28.09.2013, 14:09
Re: Help in making function... - by Konstantinos - 28.09.2013, 14:18
Re: Help in making function... - by MAFIAWARS - 28.09.2013, 14:24

Forum Jump:


Users browsing this thread: 1 Guest(s)