[FilterScript] Version kick.
#28

Quote:
Originally Posted by Xeon™
View Post

waste of lines you could use
PHP Code:
if(!strcmp(versionstring"0.3.7-R2")) 
instead


waste of lines and CPU usage, you could send directly the messages (your messages won't appear to the player because the second one will be called after delayed kick finish and that's not cool.

I can do it on fewer lines like that:
PHP Code:
 CMD:togversion(playerid)
 {
     if(!
IsPlayerAdmin(playerid)) return 1;
     if(
versioncheck == falseversioncheck trueSendClientMessage(playerid,-1,".: VERSION ON :.");
     else 
versioncheck falseSendClientMessage(playerid,-1,".: VERSION OFF :.");
     return 
1;
 } 
spaghetti code...

thanks for your shit long code mate!

P.S: we need quality/rapidity, not the longer
Since when does line count matter? Going by your logic, there’s no point using tabs or white spaces at all. Let’s just write everything in a single line, so we have the shortest code possible!
Reply


Messages In This Thread
Version kick. - by RogueDrifter - 09.12.2017, 17:35
Re: Version kick. - by Xeon™ - 09.12.2017, 18:00
Re: Version kick. - by IllidanS4 - 09.12.2017, 18:01
Re: Version kick. - by RogueDrifter - 09.12.2017, 18:07
Re: Version kick. - by SonnyGamer - 09.12.2017, 18:25
Re: Version kick. - by RogueDrifter - 09.12.2017, 18:27
Re: Version kick. - by Xeon™ - 09.12.2017, 18:34
Re: Version kick. - by RogueDrifter - 09.12.2017, 18:45
Re: Version kick. - by SonnyGamer - 09.12.2017, 18:56
Re: Version kick. - by RogueDrifter - 09.12.2017, 19:00
Re: Version kick. - by Xeon™ - 09.12.2017, 19:04
Re: Version kick. - by RogueDrifter - 09.12.2017, 19:08
Re: Version kick. - by Xeon™ - 09.12.2017, 19:10
Re: Version kick. - by RogueDrifter - 09.12.2017, 19:13
Re: Version kick. - by Xeon™ - 09.12.2017, 19:16
Re: Version kick. - by RogueDrifter - 09.12.2017, 19:18
Re: Version kick. - by Lucky13 - 09.12.2017, 19:21
Re: Version kick. - by RogueDrifter - 09.12.2017, 19:23
Re: Version kick. - by Lucky13 - 09.12.2017, 19:27
Re: Version kick. - by RogueDrifter - 09.12.2017, 19:30
Re: Version kick. - by rfr - 09.12.2017, 19:33
Re: Version kick. - by rfr - 09.12.2017, 19:36
Re: Version kick. - by RogueDrifter - 09.12.2017, 19:43
Re: Version kick. - by rfr - 09.12.2017, 20:17
Re: Version kick. - by RogueDrifter - 09.12.2017, 20:50
Re: Version kick. - by R4nd4ll - 09.12.2017, 23:50
Re: Version kick. - by Killa[DGZ] - 10.12.2017, 00:44
Re: Version kick. - by Dignity - 10.12.2017, 00:46
Re: Version kick. - by SquirrelLSRP - 10.12.2017, 00:55
Re: Version kick. - by RogueDrifter - 10.12.2017, 01:30
Re: Version kick. - by Abagail - 10.12.2017, 03:39
Re: Version kick. - by Infinity - 10.12.2017, 07:44
Re: Version kick. - by RogueDrifter - 10.12.2017, 09:49
Re: Version kick. - by Xeon™ - 10.12.2017, 11:24
Re: Version kick. - by Wisam - 10.12.2017, 12:16
Re: Version kick. - by rfr - 10.12.2017, 12:32
Re: Version kick. - by RogueDrifter - 10.12.2017, 12:39
Re: Version kick. - by GhostHacker9 - 10.12.2017, 12:45
Re: Version kick. - by RogueDrifter - 10.12.2017, 12:55
Re: Version kick. - by Infinity - 10.12.2017, 12:56

Forum Jump:


Users browsing this thread: 1 Guest(s)