script help
#6

i got this in my script:

PHP код:
public recentlyUsedNicks(playerid)
{
    new 
query[200], ip[16], pName[24],pName1[10][24], playerName[24];
    
GetPlayerIp(playeridipsizeof(ip));
    
GetPlayerName(playeridplayerNamesizeof(playerName));
    
mysql_format(1querysizeof(query),"SELECT playerName FROM `playerdata` WHERE `playerIP`='%s' LIMIT 10"ip);
    new 
Cache:cacheid mysql_query(1query);
    new 
rows cache_num_rows(); 
    new 
string[128];//, string1[128];
    
if(rows 1)
    {
        
format(stringsizeof(string),"Player %s has previously connected with following %d names:"playerNamerows);
    
//    adminchat(COLOR_GREEN, string);

        
for(new 0rowsi++)
        {
            
cache_get_field_content(i"playerName"pName150);
            
pName1[i] = pName;
            
format(stringsizeof(string),"%s \n%s",stringpName1[i]);
        }
        
adminchat(COLOR_GREENstring);
        
IRC_GroupSay(gGroupIDIRC_CHANNELstring);

    }
    
cache_delete(cacheid);

and call the function once player has logged in.
Reply


Messages In This Thread
script help - by GeneralAref - 09.10.2016, 12:43
Re: script help - by ChristolisTV - 09.10.2016, 12:49
Re: script help - by GeneralAref - 09.10.2016, 16:13
Re: script help - by azzerking - 09.10.2016, 16:24
Re: script help - by GeneralAref - 09.10.2016, 16:27
Re: script help - by iLearner - 09.10.2016, 16:32
Re: script help - by GeneralAref - 09.10.2016, 16:38
Re: script help - by iLearner - 09.10.2016, 16:41
Re: script help - by Konstantinos - 09.10.2016, 16:42
Re: script help - by azzerking - 09.10.2016, 16:52

Forum Jump:


Users browsing this thread: 5 Guest(s)