#1

I've been trying at this thing for a while now. I can't seem to figure it out, can anyone help me?
Код HTML:
C:\Users\Zach\Desktop\Servers\SAMP\Silver Roleplay Scratch\gamemodes\SRP.pwn(79) : error 010: invalid function or declaration
C:\Users\Zach\Desktop\Servers\SAMP\Silver Roleplay Scratch\gamemodes\SRP.pwn(81) : error 010: invalid function or declaration
C:\Users\Zach\Desktop\Servers\SAMP\Silver Roleplay Scratch\gamemodes\SRP.pwn(84) : error 010: invalid function or declaration
C:\Users\Zach\Desktop\Servers\SAMP\Silver Roleplay Scratch\gamemodes\SRP.pwn(87) : error 010: invalid function or declaration
C:\Users\Zach\Desktop\Servers\SAMP\Silver Roleplay Scratch\gamemodes\SRP.pwn(93) : error 010: invalid function or declaration
Код HTML:
       LoadLeaders(); //This MUST BE executed AFTER the organizations are being created!
               new pcount = 0;
        for (new playerid = 0;playerid<MAX_PLAYERS;playerid++) //ERROR HERE
        {
            if (IsPlayerConnected(playerid)) //ERROR HERE
            {
                LoadPlayerOrgInfo(playerid);
                pcount++; //ERROR HERE
            }
        }
        if (pcount > 0) //ERROR HERE
        {
                printf("Dynamic Families loaded.");
                printf("Data loaded for %d players.", pcount);
        }

        return 1; //ERROR HERE
}
Reply
#2

pawn Код:
LoadLeaders(); //This MUST BE executed AFTER the families are being created!
               new pcount = 0;
       for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if (IsPlayerConnected(i))
            {
                LoadPlayerOrgInfo(i);
                pcount++;
            }
        }
        if (pcount > 0)
        {
                printf("Family System loaded.");
                printf("Data loaded for %d connected members.", pcount);
        }

        return 1;
}
And show us the error lines please.
Reply
#3

I marked them with //ERROR HERE
Код HTML:
       LoadLeaders(); //This MUST BE executed AFTER the organizations are being created!
               new pcount = 0;
        for (new playerid = 0;playerid<MAX_PLAYERS;playerid++) //ERROR HERE
        {
            if (IsPlayerConnected(playerid)) //ERROR HERE
            {
                LoadPlayerOrgInfo(playerid);
                pcount++; //ERROR HERE
            }
        }
        if (pcount > 0) //ERROR HERE
        {
                printf("Dynamic Families loaded.");
                printf("Data loaded for %d players.", pcount);
        }

        return 1; //ERROR HERE
}
Reply
#4

PHP код:
    LoadLeaders(); //This MUST BE executed AFTER the families are being created!
    
new pcount 0;
    for(new 
0MAX_PLAYERSi++)
        {
            if (
IsPlayerConnected(i))
            {
                
LoadPlayerOrgInfo(i);
                
pcount++;
            }
        }
        if (
pcount 0)
        {
                
printf("Family System loaded.");
                
printf("Data loaded for %d connected members."pcount);
        }
    }
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)