Kick too fast ?
#1

pawn Код:
if(PLINFO[playerid][pBlocked] == 1)
{
           SendClientMessage(playerid,0xDE4E38FF,"This account has blocked.");
           Kick(playerid);
}
if my var is sets to 1 and i enter to the server , i don't recive that message, i recive just the kick. Why ?
Reply
#2

try to add "return 1;"
Reply
#3

Quote:
Originally Posted by James_Alex(Coder)
try to add "return 1;"
Oh , same thing

why ?
Reply
#4

Try these

pawn Код:
#define KickEx(%1,%2); \
{\
  SendClientMessage(%1,0xDE4E38FF,#%2);\
  SetTimerEx("kick",500,0,"i",%1);\
}

forward kick(playerid);

public kick(playerid)
  Kick(playerid);
Exampel:
pawn Код:
KickEx(playerid, "This account has blocked.");
Reply
#5

Quote:
Originally Posted by zozo
Try these

pawn Код:
#define KickEx(%1,%2); \
{\
  SendClientMessage(%1,0xDE4E38FF,#%2);\
  SetTimerEx("kick",500,0,"i",%1);\
}

forward kick(playerid);

public kick(playerid)
  Kick(playerid);
Exampel:
pawn Код:
KickEx(playerid, "This account has blocked.");
wtf ? what are those :

/
/
/
/

??
Reply
#6

Quote:
Originally Posted by MJφ
wtf ? what are those :

/
/
/
/

??
It's \ and not /. It's used in define, means the define should continue in new line.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)