[Pomoc]Errori

Započeo 007Bondâ„¢, Mart 03, 2013, 22:54:07 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Skripta koju koristim: Clasic Life
Detaljan opis problema:
Kako popravit ove errore
Dio skripte:
C:\Users\amna\Desktop\CroHunt\Classic Life RolePlay\pawno\include\SpikeStrip.inc(27) : warning 219: local variable "panels" shadows a variable at a preceding level
C:\Users\amna\Desktop\CroHunt\Classic Life RolePlay\pawno\include\SpikeStrip.inc(27) : warning 219: local variable "doors" shadows a variable at a preceding level
C:\Users\amna\Desktop\CroHunt\Classic Life RolePlay\pawno\include\SpikeStrip.inc(27) : warning 219: local variable "lights" shadows a variable at a preceding level
C:\Users\amna\Desktop\CroHunt\Classic Life RolePlay\pawno\include\SpikeStrip.inc(27) : warning 219: local variable "tires" shadows a variable at a preceding level
C:\Users\amna\Desktop\CroHunt\Classic Life RolePlay\gamemodes\CLRP.pwn(19) : error 031: unknown directive
C:\Users\amna\Desktop\CroHunt\Classic Life RolePlay\gamemodes\CLRP.pwn(14058) : warning 217: loose indentation
C:\Users\amna\Desktop\CroHunt\Classic Life RolePlay\gamemodes\CLRP.pwn(14131) : warning 217: loose indentation
C:\Users\amna\Desktop\CroHunt\Classic Life RolePlay\gamemodes\CLRP.pwn(61957) : error 021: symbol already defined: "sscanf"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

Neke slike/video za lakse dobivanje pomoci(neobavezno):




ne mozemo znati bez tih linija.... 61957 obrisi sscanf vec se koristi

Evo ova linija  61957 pocinje od {

stock sscanf(string[], format[], {Float,_}:...)
{ ------- tu je error na ovoj lini -ja izbrisem { i pojavi se 5 errora i preko 30 warningova!
new
formatPos = 0,
stringPos = 0,
paramPos = 2,
paramCount = numargs();
while (paramPos < paramCount && string[stringPos])
{
switch (format[formatPos++])
{
case '\0':
{
return 0;
}
case 'i', 'd':
{
new
neg = 1,
num = 0,
ch = string[stringPos];
if (ch == '-')
{
neg = -1;
ch = string[++stringPos];
}
do
{
stringPos++;
if (ch >= '0' && ch <= '9')
{
num = (num * 10) + (ch - '0');
}
else
{
return 1;
}
}
while ((ch = string[stringPos]) && ch != ' ');
setarg(paramPos, 0, num * neg);
}
case 'h', 'x':
{
new
ch,
num = 0;
while ((ch = string[stringPos++]))
{
switch (ch)
{
case 'x', 'X':
{
num = 0;
continue;
}
case '0' .. '9':
{
num = (num << 4) | (ch - '0');
}
case 'a' .. 'f':
{
num = (num << 4) | (ch - ('a' - 10));
}
case 'A' .. 'F':
{
num = (num << 4) | (ch - ('A' - 10));
}
case ' ':
{
break;
}
default:
{
return 1;
}
}
}
setarg(paramPos, 0, num);
}
case 'c':
{
setarg(paramPos, 0, string[stringPos++]);
}
case 'f':
{
new tmp[25];
strmid(tmp, string, stringPos, stringPos+sizeof(tmp)-2);
setarg(paramPos, 0, _:floatstr(tmp));
}
case 's', 'z':
{
new
i = 0,
ch;
if (format[formatPos])
{
while ((ch = string[stringPos++]) && ch != ' ')
{
setarg(paramPos, i++, ch);
}
if (!i) return 1;
}
else
{
while ((ch = string[stringPos++]))
{
setarg(paramPos, i++, ch);
}
}
stringPos--;
setarg(paramPos, i, '\0');
}
default:
{
continue;
}
}
while (string[stringPos] && string[stringPos] != ' ')
{
stringPos++;
}
while (string[stringPos] == ' ')
{
stringPos++;
}
paramPos++;
}
while (format[formatPos] == 'z') formatPos++;
return format[formatPos];
}

Citat: 007Bond poslato Mart 04, 2013, 11:52:54 PRE PODNE
Evo ova linija  61957 pocinje od {

stock sscanf(string[], format[], {Float,_}:...)
{ ------- tu je error na ovoj lini -ja izbrisem { i pojavi se 5 errora i preko 30 warningova!
new
formatPos = 0,
stringPos = 0,
paramPos = 2,
paramCount = numargs();
while (paramPos < paramCount && string[stringPos])
{
switch (format[formatPos++])
{
case '\0':
{
return 0;
}
case 'i', 'd':
{
new
neg = 1,
num = 0,
ch = string[stringPos];
if (ch == '-')
{
neg = -1;
ch = string[++stringPos];
}
do
{
stringPos++;
if (ch >= '0' && ch <= '9')
{
num = (num * 10) + (ch - '0');
}
else
{
return 1;
}
}
while ((ch = string[stringPos]) && ch != ' ');
setarg(paramPos, 0, num * neg);
}
case 'h', 'x':
{
new
ch,
num = 0;
while ((ch = string[stringPos++]))
{
switch (ch)
{
case 'x', 'X':
{
num = 0;
continue;
}
case '0' .. '9':
{
num = (num << 4) | (ch - '0');
}
case 'a' .. 'f':
{
num = (num << 4) | (ch - ('a' - 10));
}
case 'A' .. 'F':
{
num = (num << 4) | (ch - ('A' - 10));
}
case ' ':
{
break;
}
default:
{
return 1;
}
}
}
setarg(paramPos, 0, num);
}
case 'c':
{
setarg(paramPos, 0, string[stringPos++]);
}
case 'f':
{
new tmp[25];
strmid(tmp, string, stringPos, stringPos+sizeof(tmp)-2);
setarg(paramPos, 0, _:floatstr(tmp));
}
case 's', 'z':
{
new
i = 0,
ch;
if (format[formatPos])
{
while ((ch = string[stringPos++]) && ch != ' ')
{
setarg(paramPos, i++, ch);
}
if (!i) return 1;
}
else
{
while ((ch = string[stringPos++]))
{
setarg(paramPos, i++, ch);
}
}
stringPos--;
setarg(paramPos, i, '\0');
}
default:
{
continue;
}
}
while (string[stringPos] && string[stringPos] != ' ')
{
stringPos++;
}
while (string[stringPos] == ' ')
{
stringPos++;
}
paramPos++;
}
while (format[formatPos] == 'z') formatPos++;
return format[formatPos];
}


E SADA JA SAM IZBRISAO OVAJ STOCK I POJAVIO MI SE SAMO 1 ERROR OVAJ
C:\Users\amna\Desktop\CroHunt\Classic Life RolePlay\pawno\include\SpikeStrip.inc(27) : warning 219: local variable "panels" shadows a variable at a preceding level
C:\Users\amna\Desktop\CroHunt\Classic Life RolePlay\pawno\include\SpikeStrip.inc(27) : warning 219: local variable "doors" shadows a variable at a preceding level
C:\Users\amna\Desktop\CroHunt\Classic Life RolePlay\pawno\include\SpikeStrip.inc(27) : warning 219: local variable "lights" shadows a variable at a preceding level
C:\Users\amna\Desktop\CroHunt\Classic Life RolePlay\pawno\include\SpikeStrip.inc(27) : warning 219: local variable "tires" shadows a variable at a preceding level
C:\Users\amna\Desktop\CroHunt\Classic Life RolePlay\gamemodes\CLRP.pwn(19) : error 031: unknown directive
C:\Users\amna\Desktop\CroHunt\Classic Life RolePlay\gamemodes\CLRP.pwn(14058) : warning 217: loose indentation
C:\Users\amna\Desktop\CroHunt\Classic Life RolePlay\gamemodes\CLRP.pwn(14131) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

Citat: |LG|Yui_Sang poslato Mart 04, 2013, 12:46:54 POSLE PODNE
Citat: 007Bond poslato Mart 04, 2013, 11:55:15 PRE PODNE
Citat: 007Bond poslato Mart 04, 2013, 11:52:54 PRE PODNE
Evo ova linija  61957 pocinje od {

stock sscanf(string[], format[], {Float,_}:...)
{ ------- tu je error na ovoj lini -ja izbrisem { i pojavi se 5 errora i preko 30 warningova!
new
formatPos = 0,
stringPos = 0,
paramPos = 2,
paramCount = numargs();
while (paramPos < paramCount && string[stringPos])
{
switch (format[formatPos++])
{
case '\0':
{
return 0;
}
case 'i', 'd':
{
new
neg = 1,
num = 0,
ch = string[stringPos];
if (ch == '-')
{
neg = -1;
ch = string[++stringPos];
}
do
{
stringPos++;
if (ch >= '0' && ch <= '9')
{
num = (num * 10) + (ch - '0');
}
else
{
return 1;
}
}
while ((ch = string[stringPos]) && ch != ' ');
setarg(paramPos, 0, num * neg);
}
case 'h', 'x':
{
new
ch,
num = 0;
while ((ch = string[stringPos++]))
{
switch (ch)
{
case 'x', 'X':
{
num = 0;
continue;
}
case '0' .. '9':
{
num = (num << 4) | (ch - '0');
}
case 'a' .. 'f':
{
num = (num << 4) | (ch - ('a' - 10));
}
case 'A' .. 'F':
{
num = (num << 4) | (ch - ('A' - 10));
}
case ' ':
{
break;
}
default:
{
return 1;
}
}
}
setarg(paramPos, 0, num);
}
case 'c':
{
setarg(paramPos, 0, string[stringPos++]);
}
case 'f':
{
new tmp[25];
strmid(tmp, string, stringPos, stringPos+sizeof(tmp)-2);
setarg(paramPos, 0, _:floatstr(tmp));
}
case 's', 'z':
{
new
i = 0,
ch;
if (format[formatPos])
{
while ((ch = string[stringPos++]) && ch != ' ')
{
setarg(paramPos, i++, ch);
}
if (!i) return 1;
}
else
{
while ((ch = string[stringPos++]))
{
setarg(paramPos, i++, ch);
}
}
stringPos--;
setarg(paramPos, i, '\0');
}
default:
{
continue;
}
}
while (string[stringPos] && string[stringPos] != ' ')
{
stringPos++;
}
while (string[stringPos] == ' ')
{
stringPos++;
}
paramPos++;
}
while (format[formatPos] == 'z') formatPos++;
return format[formatPos];
}


E SADA JA SAM IZBRISAO OVAJ STOCK I POJAVIO MI SE SAMO 1 ERROR OVAJ
C:\Users\amna\Desktop\CroHunt\Classic Life RolePlay\pawno\include\SpikeStrip.inc(27) : warning 219: local variable "panels" shadows a variable at a preceding level
C:\Users\amna\Desktop\CroHunt\Classic Life RolePlay\pawno\include\SpikeStrip.inc(27) : warning 219: local variable "doors" shadows a variable at a preceding level
C:\Users\amna\Desktop\CroHunt\Classic Life RolePlay\pawno\include\SpikeStrip.inc(27) : warning 219: local variable "lights" shadows a variable at a preceding level
C:\Users\amna\Desktop\CroHunt\Classic Life RolePlay\pawno\include\SpikeStrip.inc(27) : warning 219: local variable "tires" shadows a variable at a preceding level
C:\Users\amna\Desktop\CroHunt\Classic Life RolePlay\gamemodes\CLRP.pwn(19) : error 031: unknown directive
C:\Users\amna\Desktop\CroHunt\Classic Life RolePlay\gamemodes\CLRP.pwn(14058) : warning 217: loose indentation
C:\Users\amna\Desktop\CroHunt\Classic Life RolePlay\gamemodes\CLRP.pwn(14131) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

Daj liniju 19 a ove 14058 i 14131 poravnaj
Poravno sam hvala :D
-nema vise Errora sad samo Warninzi ostali kako ih popraviti ?

C:\Users\amna\Desktop\CroHunt\Classic Life RolePlay\pawno\include\YSI\y_amx.inc(314) : warning 219: local variable "base" shadows a variable at a preceding level
C:\Users\amna\Desktop\CroHunt\Classic Life RolePlay\pawno\include\YSI\y_amx.inc(362) : warning 219: local variable "base" shadows a variable at a preceding level
C:\Users\amna\Desktop\CroHunt\Classic Life RolePlay\pawno\include\YSI\y_amx.inc(583) : warning 219: local variable "base" shadows a variable at a preceding level
C:\Users\amna\Desktop\CroHunt\Classic Life RolePlay\pawno\include\SpikeStrip.inc(27) : warning 219: local variable "panels" shadows a variable at a preceding level
C:\Users\amna\Desktop\CroHunt\Classic Life RolePlay\pawno\include\SpikeStrip.inc(27) : warning 219: local variable "doors" shadows a variable at a preceding level
C:\Users\amna\Desktop\CroHunt\Classic Life RolePlay\pawno\include\SpikeStrip.inc(27) : warning 219: local variable "lights" shadows a variable at a preceding level
C:\Users\amna\Desktop\CroHunt\Classic Life RolePlay\pawno\include\SpikeStrip.inc(27) : warning 219: local variable "tires" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

Header size:          15012 bytes
Code size:          2655052 bytes
Data size:          2494316 bytes
Stack/heap size:      16384 bytes; estimated max. usage=4487 cells (17948 bytes)
Total requirements: 5180764 bytes

7 Warnings.


Evo linije:
314 : new Admincar[4];

362: "Classic Life - ~y~Sva RolePlay pravila mozete vidjeti na ~w~/pravila.",

583: forward GameModeInitExitFunc()

evo sa 27

#define NEON 5006

pomoc bi dobro dosla ,....





PS:

MA DŽABA SE SVI MUCIMO, JEDNOSTAVNO NEK MI NEKO DA NOVU VERZIJU POPRAVLJENU CLASSIC LIFE GM.a I TO JE TO :P