Results 1 to 10 of 33

Thread: [advanced] Find player's country-of-origin

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #7
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    PHP Code:
    args = [];
    args[0] = player;
    self maps\mp\gametypes\_mysql::asyncquery(yourquery, ::showlocationargs); 
    PHP Code:
    showlocation(rowsargs)
    {
    if(!
    isdefined(args[0]))
    return;
    if(
    isdefiend(rows) && isdefined(rows[0]) && isdefined(rows[0]["country"]))
    self iprintln(args[0].name " is from " rows[0]["country"]);

    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  2. The Following User Says Thank You to IzNoGoD For This Useful Post:

    Ni3ls (26th March 2016)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •