Help Scritp
#1

Hi
Code Error
Код:
stock ADAvalibles
{ //line (73345)
ADAvalibles(){ //Line (73346)
new count;
for(new i = 0; i < MAX_AD; i++){
	if(ADInfo[i][aActive] == 1){
	    count++;
	}
	return 1;
}
Errors
Код:
C:\Users\Lolito\Desktop\Espaсa Roleplay\Espaсa roleplay\gamemodes\ER.pwn(73345) : error 001: expected token: ";", but found "{"
C:\Users\Lolito\Desktop\Espaсa Roleplay\Espaсa roleplay\gamemodes\ER.pwn(73346) : error 021: symbol already defined: "ADAvalibles"
Reply
#2

Код:
stock ADAvalibles
{ 
        new count;
        for(new i = 0; i < MAX_AD; i++)
        {
	         if(ADInfo[i][aActive] == 1){count++;}
        }
	return 1;
}
Reply
#3

Try this

Код:
stock ADAvalibles()
{
	ADAvalibles();
	new count;
	for(new i = 0; i < MAX_AD; i++)
	{
		if(ADInfo[i][aActive] == 1)
		{
	    	count++;
		}
	}
	return 1;

}
Reply
#4

Код:
stock ADAvalibles()
{
new count;
for(new i = 0; i < MAX_AD; i++){
	if(ADInfo[i][aActive] == 1){
	    count++;
	}
        }
	return 1;
}
Reply
#5

PHP код:
stock ADAvalibles

    
ADAvalibles();
    new 
count;
    for(new 
0MAX_ADi++)
    {
        if(
ADInfo[i][aActive] == 1)
        {
            
count++;
        }
    }
        return 
1;

You were missing a bracket.
Reply
#6

Thank you all: D
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)