Would it actually work ?
#1

PHP код:
#define elif(%1) else if(%1) 
Reply
#2

It will.
Reply
#3

Too lazy to type else if?
Reply
#4

Nope.
Reply
#5

Quote:
Originally Posted by NeXoR
Посмотреть сообщение
PHP код:
#define elif(%1) else if(%1) 
You could of try it,and see the results
Reply
#6

Quote:
Originally Posted by BurnZ
Посмотреть сообщение
Nope.
I'm assuming your reply was an answer to his question. If so, you're wrong:
PHP код:
#include <a_samp>
#define elif(%1)    else if(%1)
main() {
    new
        var = 
5;
    if(var < 
5) {
        
        print(
"var < 5");
    }
    
elif(var == 5) {
        print(
"var == 5");
    }
    
elif(var == 6) {
        print(
"var == 6");
    }
    
elif(var >= 7) {
        print(
"var >= 7");
    }

This will print var == 5.
Reply
#7

You could even make your code look like this:
pawn Код:
#include <a_samp>
#include <lolcode-2.0>

main() FURBALLCUMIN
    FAX("[debug] LOLCode 2.0 initialised.")OK
    SPACECATGOHOME
ITCAME

WWW OnGameModeInit() FURBALLCUMIN
    CATCOLLARS3D("I'm at the coordinates:\n30.0,40.0,50.0",0x008080FF,30.0,40.0,50.0,40.0,0);
   
    SPACECATGOHOME
ITCAME

WWW OnPlayerConnect(playerid) FURBALLCUMIN
    CANHAS szPlayerName[MAX_PLAYER_NAME]OK
    GetPlayerName(playerid, szPlayerName, MAX_PLAYER_NAME)OK
    if(!ISCATSAME(szPlayerName, "MaTrIx4057")) FURBALLCUMIN
        // u critic u mad
        UMAD(playerid)OK
    ITCAME
   
    if(!ISCATSAME(szPlayerName, "Max_Coldheart")) FURBALLCUMIN
        UEVENMADDER(playerid)OK
    ITCAME
   
    SENDCLIENTCATS(playerid, DATWHITECAT, "sup brew?")OK
ITCAME
https://sampforum.blast.hk/showthread.php?tid=171839
Reply
#8

Quote:
Originally Posted by AndySedeyn
Посмотреть сообщение
I'm assuming your reply was an answer to his question. If so, you're wrong:
Nah lol. I was being sarcastic. I am bored af right now.
Reply
#9

Quote:
Originally Posted by BurnZ
Посмотреть сообщение
Nah lol. I was being sarcastic. I am bored af right now.
Please .. Just admit lol.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)