Quote:
Originally Posted by Xeon™
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 == false) versioncheck = true, SendClientMessage(playerid,-1,".: VERSION ON :.");
else versioncheck = false, SendClientMessage(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!