Missing a bracket, code working
#3

Thats not what Im trying to achieve.

This is the code with brackets placed normaly

pawn Code:
stock createFactionRank(faction_id, rank_name[], power)
{
    for(new = 0; i< MAX_FACTION_RANKS; i++)
    {
        if(rankInfo[i][fr_Valid] == 0)
        {
               rankInfo[i][fr_ID] = i;
               rankInfo[i][fr_Valid] = 1;
           format(rankInfo[i][fr_Name],sizeof(rankInfo[i][fr_Name]),"%s",rank_name);
           rankInfo[i][fr_Power] = power;
           new query[128];
           mysql_format(mysql,query,sizeof(query),"INSERT INTO faction_rank (`faction_id`,`rank_name`,`faction_rank_power`) VALUES (%d,'%e',%d)",faction_id, rank_name, power);
          mysql_tquery(mysql,query,"");
          break;
        }
    }
As you can see, there is 1 missing to close the function
Reply


Messages In This Thread
Missing a bracket, code working - by TwinkiDaBoss - 25.11.2016, 19:25
Re: Missing a bracket, code working - by Micko123 - 25.11.2016, 19:27
Re: Missing a bracket, code working - by TwinkiDaBoss - 25.11.2016, 19:30
Re: Missing a bracket, code working - by Konstantinos - 25.11.2016, 19:34
Re: Missing a bracket, code working - by TwinkiDaBoss - 25.11.2016, 19:48
Re: Missing a bracket, code working - by Micko123 - 25.11.2016, 20:31

Forum Jump:


Users browsing this thread: 1 Guest(s)