Would it actually work ? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Would it actually work ? (
/showthread.php?tid=618627)
Would it actually work ? -
NeXoR - 08.10.2016
PHP код:
#define elif(%1) else if(%1)
Re: Would it actually work ? -
AndySedeyn - 08.10.2016
It will.
Re: Would it actually work ? -
Luicy. - 08.10.2016
Too lazy to type else if?
Re: Would it actually work ? -
BurnZ - 08.10.2016
Nope.
Re: Would it actually work ? -
CannonBolt - 08.10.2016
Quote:
Originally Posted by NeXoR
PHP код:
#define elif(%1) else if(%1)
|
You could of try it,and see the results
Re: Would it actually work ? -
AndySedeyn - 08.10.2016
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.
Re: Would it actually work ? -
SickAttack - 08.10.2016
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
Re: Would it actually work ? -
BurnZ - 08.10.2016
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.
Re: Would it actually work ? -
oMa37 - 08.10.2016
Quote:
Originally Posted by BurnZ
Nah lol. I was being sarcastic. I am bored af right now.
|
Please .. Just admit lol.