GTA Közösség - A magyar GTA fórum

San Andreas Multiplayer (SA-MP) => SA-MP: Szerverfejlesztés => Segítségkérés => A témát indította: [SRC]D@nee - 2010. Május 20. - 18:00:13

Cím: String WARNINGOK
Írta: [SRC]D@nee - 2010. Május 20. - 18:00:13
Hy all megint:) bocs hogy megin irok de nem értem a következot:
szóval megcsináltam a teléket és kiirásokat is hogy midnenki lássa stb. Nos ennél van egy new stirng[128](ha [256]-ra irom ét akkor is ugyan ugy warningolja...) szóval a warningok oka ez:
 
warning 219: local variable \"string\" shadows a variable at a preceding level

 
1. Ez mit jelenthet? szerintem valami olyant hogy nem elég a megadott érték.
2. hogy lehet orvosolni.
3.A Megoldásokat kösziikkek:)
D@nee
Cím: String WARNINGOK
Írta: Lömpi - 2010. Május 20. - 18:46:10
new string[érték]; érték részt növeld meg ha pl 128 akkor ird át 256 ||lehet hogy több helyenvan  ilyen new string
Cím: String WARNINGOK
Írta: [SRC]D@nee - 2010. Május 20. - 18:51:10
Igen több helyen van, mivel a telékbe van,de amikor eloször irtam, akkor is warning volt... Akkor mi lehet?:S
Cím: String WARNINGOK
Írta: ALIEN - 2010. Május 20. - 19:08:21
Azért warningolja mert 2szer van a string. Keresd meg a másodikat. (És töröld)
Cím: String WARNINGOK
Írta: [SRC]D@nee - 2010. Május 20. - 19:14:18
Hát azt tudom hogy hol van az 1. az 1. a telébe van a 2. nem tudom majd megkeresem:(
Cím: String WARNINGOK
Írta: Iceaac - 2010. Május 20. - 19:22:37
Lehet, hogy egy include fájlban van egy ilyen nevu karakterlánc.
Cím: String WARNINGOK
Írta: [SRC]D@nee - 2010. Május 20. - 20:18:05
A String.inc be ez van:
 
* String functions
*
* (c) Copyright 2005, ITB CompuPhase
* This file is provided as is (no warranties).
*/
#if defined _string_included
  #endinput
#endif
#define _string_included
#pragma library String
native strlen(const string[]);
native strpack(dest[], const source[], maxlength=sizeof dest);
native strunpack(dest[], const source[], maxlength=sizeof dest);
native strcat(dest[], const source[], maxlength=sizeof dest);
native strmid(dest[], const source[], start, end, maxlength=sizeof dest);
native bool: strins(string[], const substr[], pos, maxlength=sizeof string);
native bool: strdel(string[], start, end);
native strcmp(const string1[], const string2[], bool:ignorecase=false, length=cellmax);
native strfind(const string[], const sub[], bool:ignorecase=false, pos=0);
native strval(const string[]);
native valstr(dest[], value, bool:pack=false);
native bool: ispacked(const string[]);
native uudecode(dest[], const source[], maxlength=sizeof dest);
native uuencode(dest[], const source[], numbytes, maxlength=sizeof dest);
native memcpy(dest[], const source[], index=0, numbytes, maxlength=sizeof dest);
Cím: String WARNINGOK
Írta: Iceaac - 2010. Május 20. - 20:54:42
Nem erre gondoltam. Lehet, hogy van egy sanyika.inc fájlod, amiben létre van hozva ilyen néven. Én ezért más néven hozom létre a módjaimban a karakterláncot, pl str..