Page 2 of 2 FirstFirst 12
Results 16 to 24 of 24
  1. #16
    donran's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    952
    Reputation
    41
    Thanks
    955
    My Mood
    Paranoid
    Quote Originally Posted by BlackRayquaza View Post
    (I'm not even 100% if they need to be there)
    It doesn't.
    Only case you would need semicolon after a curly bracket is if you were to make a if statement like so:
    Code:
    if($swag):
        if($swag) {$swag = False;};
    else:
        $swag = True;
    endif;

  2. #17
    theboo's Avatar
    Join Date
    Oct 2014
    Gender
    female
    Posts
    113
    Reputation
    10
    Thanks
    982
    Quote Originally Posted by BlackRayquaza View Post
    Formatted code:
    I wonder how your OCD didnt trigger from ^. Mine certainly did:
     
    Code:
    print "<br>";
    print "<br>" . "Account ID: " . $r['id'];
    print "<br>" . "Username: " . $r['uuid'];
    print "<br>" . "Name: " . $r['name'];
    print "<br>" . "Admin: " . ($r['admin']?"Yes":"No");
    print "<br>" . "Character slots: " . $r['maxCharSlot'];
    print "<br>" . "Name chosen: " . ($r['namechosen']?"Yes":"No");
    print "<br>" . "Email verified: " . ($r['verified']?"Yes":"No");
    print "<br>" . "Vaults unlocked: " . $r['vaultCount'];
    print "<br>" . "Guest: " . ($r['guest']?"Yes":"No");
    Opinions are like assholes. Everybody's got one and everyone thinks everyone else's stinks.

  3. #18
    donran's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    952
    Reputation
    41
    Thanks
    955
    My Mood
    Paranoid
    Quote Originally Posted by theboo View Post
    print "<br>";
    print "<br>" . "Account ID: " . $r['id'];
    print "<br>" . "Username: " . $r['uuid'];
    print "<br>" . "Name: " . $r['name'];
    print "<br>" . "Admin: " . ($r['admin']?"Yes":"No");
    print "<br>" . "Character slots: " . $r['maxCharSlot'];
    print "<br>" . "Name chosen: " . ($r['namechosen']?"Yes":"No");
    print "<br>" . "Email verified: " . ($r['verified']?"Yes":"No");
    print "<br>" . "Vaults unlocked: " . $r['vaultCount'];
    print "<br>" . "Guest: " . ($r['guest']?"Yes":"No");
    That triggered my OCD. Why do you need add two strings together? Also moar spaces plz, looks messy c:
    Code:
    print "<br>";
    print "<br>Account ID: " . $r['id'];
    print "<br>Username: " . $r['uuid'];
    print "<br>Name: " . $r['name'];
    print "<br>Admin: " . ($r['admin'] ? "Yes" : "No");
    print "<br>Character slots: " . $r['maxCharSlot'];
    print "<br>Name chosen: " . ($r['namechosen'] ? "Yes" : "No");
    print "<br>Email verified: " . ($r['verified'] ? "Yes" : "No");
    print "<br>Vaults unlocked: " . $r['vaultCount'];
    print "<br>Guest: " . ($r['guest'] ? "Yes" : "No");

  4. #19
    theboo's Avatar
    Join Date
    Oct 2014
    Gender
    female
    Posts
    113
    Reputation
    10
    Thanks
    982
    Quote Originally Posted by donran View Post
    That triggered my OCD. Why do you need add two strings together? Also moar spaces plz, looks messy c:
    agree on 2 strings. Also its not messy - it is compact!
    Opinions are like assholes. Everybody's got one and everyone thinks everyone else's stinks.

  5. The Following User Says Thank You to theboo For This Useful Post:

    LvlAndFarm (11-19-2014)

  6. #20
    donran's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    952
    Reputation
    41
    Thanks
    955
    My Mood
    Paranoid
    Quote Originally Posted by theboo View Post
    Also its not messy - it is compact!
    I guess, you can do whatever you feel like there. That's my opinion though

    Also:
    Code:
    print "<br>Account ID: " . $r['id'];
    would be:
    Code:
    echo '<br>Account ID: ' . $r['id'];
    since single quotes are somewhat faster than double quotes and echo is faster than print.
    Just some tips for anyone interested in PHP reading this thread
    Last edited by donran; 11-19-2014 at 04:36 PM.

  7. The Following 2 Users Say Thank You to donran For This Useful Post:

    BlackRayquaza (11-22-2014),LvlAndFarm (11-19-2014)

  8. #21
    Trollaux's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    2,074
    Reputation
    137
    Thanks
    792
    why is this useful at all
    realmeye is 90% trading and 10% top guilds
    neither of which are strongly apparent in *most* pservers
    (notice how i said most not all, dont get butthurt)
    d e a d b o y s
    Quote Originally Posted by Dave84311 View Post
    What do you call a troll with shitty jokes?
    Trollaux
    Quote Originally Posted by Kyeran View Post
    Foot job with lots of oil.
    Quote Originally Posted by Kyeran View Post
    If she's 12, I'm 12.

  9. The Following User Says Thank You to Trollaux For This Useful Post:

    [MPGH]Ahl (11-19-2014)

  10. #22
    Trapped's Avatar
    Join Date
    May 2012
    Gender
    male
    Location
    Italy.
    Posts
    584
    Reputation
    10
    Thanks
    449
    My Mood
    Asleep
    Quote Originally Posted by BlackRayquaza View Post
    I'm not a Go language expert, but I managed to get this working a while ago. It's quite nice but I'd rather have a "realmeye" in PHP or C#.
    Quote Originally Posted by KieronZeCoder69 View Post
    go is harder then php :P
    There are a couple reasons why you'd want to use Go instead of PHP (and C#, under some aspects):
    1. Go is SIGNIFICANTLY faster; my RealmEye implementation can handle thousands of simultaneous connections on a raspberry pi or similar shit hardware (not counting the network)
    2. Go is statically typed, which leads to WAY less bugs than you would think
    3. Go COMPILES TO NATIVE (x86, x86_64, ARM, whatever you want) and STATICALLY LINKED: after you compiled it, you can just run and/or share (as long as the target architecture and OS is the same, but you can crosscompile it too) the EXE or ELF or whatever
    4. You don't need to have an http server to serve as middleware: it's a single piece (you technically can, however, use it as you'd use PHP)
    "The great merit of society is to make one appreciate solitude."
    Charles Chincholles, "Reflections on the Art of Life" (from fortune-mod)

  11. The Following User Says Thank You to Trapped For This Useful Post:

    BlackRayquaza (11-22-2014)

  12. #23
    donran's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    952
    Reputation
    41
    Thanks
    955
    My Mood
    Paranoid
    Quote Originally Posted by Trapped View Post
    There are a couple reasons why you'd want to use Go instead of PHP (and C#, under some aspects):
    1. Go is SIGNIFICANTLY faster; my RealmEye implementation can handle thousands of simultaneous connections on a raspberry pi or similar shit hardware (not counting the network)
    2. Go is statically typed, which leads to WAY less bugs than you would think
    3. Go COMPILES TO NATIVE (x86, x86_64, ARM, whatever you want) and STATICALLY LINKED: after you compiled it, you can just run and/or share (as long as the target architecture and OS is the same, but you can crosscompile it too) the EXE or ELF or whatever
    4. You don't need to have an http server to serve as middleware: it's a single piece (you technically can, however, use it as you'd use PHP)
    Go fanboy right here guys.
    jk luv u traped

  13. The Following 3 Users Say Thank You to donran For This Useful Post:

    BlackRayquaza (11-22-2014),KieronZeCoder69 (11-21-2014),Trapped (11-23-2014)

  14. #24
    BlackRayquaza's Avatar
    Join Date
    Nov 2012
    Gender
    male
    Posts
    574
    Reputation
    10
    Thanks
    186
    My Mood
    In Love
    Quote Originally Posted by donran View Post
    I guess, you can do whatever you feel like there. That's my opinion though

    Also:
    Code:
    print "<br>Account ID: " . $r['id'];
    would be:
    Code:
    echo '<br>Account ID: ' . $r['id'];
    since single quotes are somewhat faster than double quotes and echo is faster than print.
    Just some tips for anyone interested in PHP reading this thread
    Thanks for the tip.
    YEP cock

  15. The Following User Says Thank You to BlackRayquaza For This Useful Post:

    LvlAndFarm (11-22-2014)

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Pristontale Private Server
    By Fedaykin in forum General Gaming
    Replies: 19
    Last Post: 06-05-2006, 11:44 AM
  2. Runescape Private Server
    By Paolo1993 in forum General Gaming
    Replies: 20
    Last Post: 02-07-2006, 05:06 PM
  3. WoW Private Servers
    By Mortifix in forum General Gaming
    Replies: 11
    Last Post: 01-18-2006, 12:43 AM
  4. Private Servers...
    By arunforce in forum General Gaming
    Replies: 10
    Last Post: 01-14-2006, 06:25 AM