Please Error help -
itachi - 06.01.2015
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) )
Respuesta: Please Error help -
JuanStone - 06.01.2015
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);
}
Re: Please Error help -
itachi - 06.01.2015
...
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) )
|
Respuesta: Please Error help -
JuanStone - 06.01.2015
Show command login. Not show code, not party.
Re: Please Error help -
itachi - 06.01.2015
I dont have command login,a have gm amx no pwn cmd /login nick + C is hack for kick all player
Re: Please Error help -
Rufio - 06.01.2015
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?
Respuesta: Please Error help -
JuanStone - 06.01.2015
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;
}
Re: Please Error help -
itachi - 06.01.2015
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.
Respuesta: Please Error help -
JuanStone - 06.01.2015
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

.
Re: Please Error help -
Rufio - 06.01.2015
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.