Please Error help
#1

new nickC[128];
format(nickC,sizeof(nickC),"%dC",PlayerName(player id));

if(cmdtext[] == nickC)
{
SendClientMessage(playerid,COLOR_RED,"Brain fuck you bro");
Kick(playerid);
return 1;
}

Error :
error 029: invalid expression, assumed zero
( if(cmdtext[] == nickC) )
Reply
#2

What you try to do? Did not understand your code.

pawn Код:
new name[24];
GetPlayerName(playerid, name, 24);
if(strcmp(cmdtext, name, true) == 0)
{
    SendClientMessage(playerid,COLOR_RED,"Brain fuck you bro");
    Kick(playerid);
}
Reply
#3

...
If I write cmd /login mynick + C ( /login BrainC ) kick all players on server.
I want antikickall .

I crate this but 1 error
Quote:

new nickC[128];
format(nickC,sizeof(nickC),"%dC",PlayerName(player id));

if(cmdtext[] == nickC)
{
SendClientMessage(playerid,COLOR_RED,"Brain fuck you bro");
Kick(playerid);
return 1;
}

Error :
error 029: invalid expression, assumed zero
( if(cmdtext[] == nickC) )

Reply
#4

Show command login. Not show code, not party.
Reply
#5

I dont have command login,a have gm amx no pwn cmd /login nick + C is hack for kick all player
Reply
#6

Show us the CMD:login or whatever command processor you are using, we are not meant to be guessing your code, right?

Edit: Then remove the hack you scripted, why would you script such a hack? Furthermore, why would you script a hack inside of your gamemode?
Reply
#7

Command proccesor ?



pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    new name[24], string_command[30];
    GetPlayerName(playerid, name, 24);
    format(string_command, sizeof(string_command), "login %sC" name);

    if(strcmp(cmdtext, string_command, true) == 0)
    {
        SendClientMessage(playerid, -1, "asd.");
        Kick(playerid);
        return true;
    }
    return true;
}
Reply
#8

no You understand to my problem
I Have gamemode from net but gamemode is amx no pwn and want antihack to kickall for command /login nickC this hack is in gamemode.
Reply
#9

I'm sorry. i can't help you if you do not have the .pwn, the problem will continue, not .pawn not party .

The only way to solve your problem is modifying the .pwn .
Reply
#10

Quote:
Originally Posted by itachi
Посмотреть сообщение
no You understand to my problem
I Have gamemode from net but gamemode is amx no pwn and want antihack to kickall for command /login nickC this hack is in gamemode.
Then I'd suggest you to find another gamemode as you can't just go ahead and edit an .amx file, you are going to either use a De-AMX(which I don't actually suggest you to imo), or find another gamemode with a .pwn file.
Reply


Forum Jump:


Users browsing this thread: