Help Scritp - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help Scritp (
/showthread.php?tid=647667)
Help Scritp -
LOLITO - 08.01.2018
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"
Re: Help Scritp -
TomRedlake - 08.01.2018
Код:
stock ADAvalibles
{
new count;
for(new i = 0; i < MAX_AD; i++)
{
if(ADInfo[i][aActive] == 1){count++;}
}
return 1;
}
Re: Help Scritp -
BalkanEliteRP - 08.01.2018
Try this
Код:
stock ADAvalibles()
{
ADAvalibles();
new count;
for(new i = 0; i < MAX_AD; i++)
{
if(ADInfo[i][aActive] == 1)
{
count++;
}
}
return 1;
}
Re: Help Scritp -
RowdyrideR - 08.01.2018
Код:
stock ADAvalibles()
{
new count;
for(new i = 0; i < MAX_AD; i++){
if(ADInfo[i][aActive] == 1){
count++;
}
}
return 1;
}
Re: Help Scritp -
aoky - 08.01.2018
PHP код:
stock ADAvalibles
{
ADAvalibles();
new count;
for(new i = 0; i < MAX_AD; i++)
{
if(ADInfo[i][aActive] == 1)
{
count++;
}
}
return 1;
}
You were missing a bracket.
Re: Help Scritp -
LOLITO - 08.01.2018
Thank you all: D