OTHER PROBLEM!
#4

Quote:
Originally Posted by RIDE2DAY
Посмотреть сообщение
You should read the wiki, there says clearly:


The Kick/Ban function must be called with a delay just after the SendClientMessage function, that's how SA-MP works in this case.
PHP код:
#define FixedBan(%0)    SetTimerEx("myFixedBan",250,false,"d",%0)
forward myFixedBan(playerid);
public 
myFixedBan(playerid)
{
    
Ban(playerid);
}
// Usage:
FixedBan(playerid); 
On the other hand, the code from your command is really bad in terms of optimization. You should go through all this:
https://sampforum.blast.hk/showthread.php?tid=646264

Alright, here you have something else: doing hours * 24 doesn't return days! You must do hours/24 and round the result because that might be a float:
PHP код:
new zile floatround(float(ore)/24.0); 
THANKS,i'm modified Ban(playerid); with Kick(playerid); and works!
Reply


Messages In This Thread
OTHER PROBLEM! - by Longover - 28.12.2017, 01:57
Re: OTHER PROBLEM! - by RIDE2DAY - 28.12.2017, 02:09
Re: OTHER PROBLEM! - by Longover - 28.12.2017, 02:24
SOLVED! - by Longover - 28.12.2017, 02:29
Re: OTHER PROBLEM! - by RIDE2DAY - 28.12.2017, 02:36
Re: OTHER PROBLEM! - by Longover - 28.12.2017, 02:48
Re: OTHER PROBLEM! - by Longover - 28.12.2017, 03:03
Re: OTHER PROBLEM! - by Sithis - 28.12.2017, 06:38

Forum Jump:


Users browsing this thread: 1 Guest(s)