[+REP] "for" function problem
#5

PHP код:
CMD:h(playerid,params[])
{
    new 
selection[10],string[145];
    if(
sscanf(params,"s[10]",selection))return SendUsageMSG(playerid,"/h [BUY/SELL/CONFIG]");
    if(!
strcmp(selection,"buy",true))
    {
        for(new 
i;i<MAX_HOUSES;i++)
        {
            if(
IsPlayerInDynamicCP(playerid,hInfo[i][EntranceCP]))
            {
                if(
hInfo[i][hOwned9 == 0)
                {
                    
format(string,sizeof(string),""WORD_SYSTEM"%d",hInfo[i][hID]);
                    
SCM(playerid,COLOR_WHITE,string);
                    
SetHouseOwner(i,PlayerName(playerid));
                    break;
                }
            }
        }
    }
    return 
1;

Reply


Messages In This Thread
[+REP] "for" function problem - by E7mad - 05.02.2016, 11:27
Re: [+REP] "for" function problem - by Riddick94 - 05.02.2016, 11:31
Re: [+REP] "for" function problem - by E7mad - 05.02.2016, 11:36
Re: [+REP] "for" function problem - by E7mad - 05.02.2016, 16:12
Re: [+REP] "for" function problem - by Mencent - 05.02.2016, 16:29
Re: [+REP] "for" function problem - by E7mad - 05.02.2016, 16:42
Re: [+REP] "for" function problem - by E7mad - 05.02.2016, 16:46
Re: [+REP] "for" function problem - by -CaRRoT - 05.02.2016, 16:58
Re: [+REP] "for" function problem - by E7mad - 05.02.2016, 17:01
Re: [+REP] "for" function problem - by E7mad - 05.02.2016, 17:09

Forum Jump:


Users browsing this thread: 1 Guest(s)