What did i fuck up lmao
#2

Don't just copy paste the format of GetPlayerCountry() and other functions, you have to put the name of string in place of string[]
And also just use 'u' parameter in sscanf, don't use 'd'.
So use this :
PHP код:
CMD:geo(playeridparams[])
{
    new 
string[128], playageo[50], geo2[50], geo3[50];//geo, geo2 and geo3 should be string
    
if(sscanf(params"u"playa))//only 'u' here
    
{
        
SendClientMessageEx(playeridCOLOR_GREY"USAGE: /geo [player]");
        return 
1;
    }
    if (
PlayerInfo[playerid][pAdmin] >= 4)
    {
        if(
IsPlayerConnected(playa))
        {
            if(
playa != INVALID_PLAYER_ID)
            {
                
GetPlayerCountry(playeridgeo);//see changes here
                
GetPlayerISP(playeridgeo2);//see changes here
                
GetPlayerCity(playeridgeo3);//see changes here
                
format(stringsizeof(string), "Looking up %s's GEO.. COUNTRY:%s ISP:%S CITY:%s ."GetPlayerNameEx(playa), geogeo2geo3);
                
SendClientMessageEx(playeridCOLOR_WHITEstring);
            }
        }
    }
    else
    {
        
Invalid_Admin(playerid);
    }
    return 
1;

Reply


Messages In This Thread
What did i fuck up lmao - by minijackc - 27.04.2015, 05:26
Re: What did i fuck up lmao - by BroZeus - 27.04.2015, 05:34
Re: What did i fuck up lmao - by minijackc - 27.04.2015, 05:36

Forum Jump:


Users browsing this thread: 1 Guest(s)