Wysłany: 2009-01-01, 15:53
TNT
Ban(playerid);
Wiek: 32 Na forum: 6787 dni Posty: 145
Piwa : 1141
"lokowgw" napisał/a :C:\Documents and Settings\loko\Pulpit\td1.2editttttt.pwn(7831) : error 021: symbol already defined: "strtok"
Usun definicje strtok. Od razu powinien sie usun?? pierwszy error
Podpis
SupportTeam przemo.org
Wysłany: 2009-01-01, 19:16
lokowgw
Grafika/Sponsoring
Wiek: 34 Na forum: 6466 dni Posty: 47
Nick w MP: lokowgw
Piwa : 122
Znaczy mam usun??:
Kod:
strtok(const string1[], &index)
czy:
Kod: }
}
}
return 1;
}
strtok(const string1[], &index)
{
new length = strlen(string1);
while ((index < length) && (string1[index] <= ' '))
{
index++;
}
new offset = index;
new result[20];
while ((index < length) && (string1[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string1[index];
index++;
}
result[index - offset] = EOS;
return result;
}
forward sprawdza();
public sprawdza()
{
for(new i; i<MAX_PLAYERS; i++) {
if(!IsPlayerAdmin(i) && IsPlayerConnected(i)){
new vehID = GetPlayerVehicleID(i);
GetPlayerHealth(i,zycie);
GetVehicleHealth(vehID,vehzycie);
if(zycie >100.0){
new string[256];
GetPlayerName(i,name, sizeof(name));
format(string, sizeof(string), "SERVER: %s (ID: %d) Zostal Zbanowany Przez:Anty-Cheat Powod: God Mode ",name,i);
SendClientMessageToAll(CZERWONY,string);
Ban(i);
}else{
if(vehzycie > 1000.0){
new string[256];
GetPlayerName(i,name, sizeof(name));
format(string, sizeof(string), "SERVER: %s (ID: %d) Zostal Zbanowany Przez:Anty-Cheat Powod: Vehicle God Mode ",name,i);
SendClientMessageToAll(CZERWONY,string);
Ban(i);
}
}
}
}
Dopiero zaczynam PWNO wiec... sorry za g?upie pytania
Wysłany: 2009-01-01, 19:22
Diler
GtaO RLZ :)
Wiek: 30 Na forum: 6804 dni Posty: 199
Piwa : 2579
"lokowgw" napisał/a :strtok(const string1[], &index)
{
new length = strlen(string1);
while ((index < length) && (string1[index] <= ' '))
{
index++;
}
new offset = index;
new result[20];
while ((index < length) && (string1[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string1[index];
index++;
}
result[index - offset] = EOS;
return result;
}
Tylko to usun
I nie przepraszaj bo kazdy ma prawo pyta?
Wysłany: 2009-01-01, 21:32
lokowgw
Grafika/Sponsoring
Wiek: 34 Na forum: 6466 dni Posty: 47
Nick w MP: lokowgw
Piwa : 122
Dzi?ki pomog?o;) masz
Zn?w mam problem..
Kod: C:\Documents and Settings\loko\Pulpit\gamemodes\lo.pwn(26400) : warning 209: function "OnPlayerCommandText" should return a value
A w 26400 mam:
Kod: xD
od 26396 do 26420:
Kod: }
}
return 1;
}
}
//------------------------------------------------------------------------------------------------------
public HouseLevel(playerid)
{
if(IsPlayerConnected(playerid))
{
new h = PlayerInfo[playerid][pPhousekey];
if(h == 255) { return 0; }
if(h <= 4) { return 1; }
if(h >= 5 && h <= 9) { return 2; }
if(h >= 10 && h <= 18) { return 3; }
if(h >= 19 && h <= 22) { return 4; }
if(h >= 23 && h <= 25) { return 5; }
if(h == 26) { return 6; }
if(h == 27) { return 7; }
if(h >= 28 && h <= 31) { return 7; }
}
return 0;
}
public CHouseLevel(houseid)
Wysłany: 2009-01-02, 15:16
Jimmy J
suy shatan!
Wiek: 32 Na forum: 6699 dni Posty: 265
Piwa : 3264
Kod: }
}
return 1;
}
return 0;
}
//------------------------------------------------------------------------------------------------------
public HouseLevel(playerid)
{
if(IsPlayerConnected(playerid))
{
new h = PlayerInfo[playerid][pPhousekey];
if(h == 255) { return 0; }
if(h <= 4) { return 1; }
if(h >= 5 && h <= 9) { return 2; }
if(h >= 10 && h <= 18) { return 3; }
if(h >= 19 && h <= 22) { return 4; }
if(h >= 23 && h <= 25) { return 5; }
if(h == 26) { return 6; }
if(h == 27) { return 7; }
if(h >= 28 && h <= 31) { return 7; }
}
return 0;
}
public CHouseLevel(houseid)
Wysłany: 2009-01-04, 14:33
omen_17
Wiek: 35 Na forum: 6616 dni Posty: 5
Kod: IsNumeric(const string[])
{
for (new i=0,j=strlen(string);i<j;i++)
if (string[i] > '9' || string[i] < '0') return 0;
return 1;
}
C:\Documents and Settings\Adrian\Pulpit\LV DM XXL\xxl.PWN(5811) : warning 219: local variable "string" shadows a variable at a preceding level
Wysłany: 2009-01-04, 14:54
adrian_pl_20
Wiek: 31 Na forum: 6779 dni Posty: 155
Nick w MP: adrian_w
Piwa : 1568
tzn ?e string zosta? ju? 2 razy lub wi?cej zdefiniowany lub jest ?le
powinno by? raz Kod:
Jak niczego nieznajdziesz to spr?buj tak:
Kod: IsNumeric(const string[])
{
new string[256];
for (new i=0,j=strlen(string);i<j;i++)
if (string[i] > '9' || string[i] < '0') return 0;
return 1;
}
lub
Kod: IsNumeric(const string[])
{
new string2[256];
for (new i=0,j=strlen(string);i<j;i++)
if (string[i] > '9' || string2[i] < '0') return 0;
return 1;
}
Wysłany: 2009-01-04, 15:52
omen_17
Wiek: 35 Na forum: 6616 dni Posty: 5
nic to nie daje
blad jest w : IsNumeric(const string[])
tak pokazuje
Wysłany: 2009-01-04, 15:55
Zurrek
Wiek: 30 Na forum: 6543 dni Posty: 312
Nick w MP: Zurrek
Piwa : 1890
1 post:
Cytat: warning 219: local variable cos tam shadows a variable at a preceding level
Symbol zosta? zdefiniowany w komendzie/funkcji i na samej g?rze moda/skryptu razem z innymi definicjami, podobnie jak w b??dzie powy?ej usuni?cie definicji rozwi??e problem.
Naci?nij Ctrl+H wpisz new string[256]; i jak to b?dziesz mia? wiele razy to to usu?.
Wysłany: 2009-01-04, 16:16
omen_17
Wiek: 35 Na forum: 6616 dni Posty: 5
Zuru , dzieki
mam jeszcze takie bledy
Kod: D:\SA-MP\Pawn Compiler\0.2.2\include\dutils.inc(28) : warning 219: local variable "string" shadows a variable at a preceding level
D:\SA-MP\Pawn Compiler\0.2.2\include\dutils.inc(132) : warning 219: local variable "string" shadows a variable at a preceding level
D:\SA-MP\Pawn Compiler\0.2.2\include\dutils.inc(172) : warning 219: local variable "string" shadows a variable at a preceding level
D:\SA-MP\Pawn Compiler\0.2.2\include\dutils.inc(267) : warning 219: local variable "string" shadows a variable at a preceding level
D:\SA-MP\Pawn Compiler\0.2.2\include\dutils.inc(324) : warning 219: local variable "string" shadows a variable at a preceding level
D:\SA-MP\Pawn Compiler\0.2.2\include\dutils.inc(366) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Adrian\Pulpit\LV DM XXL\xxl.PWN(3671) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
C:\Documents and Settings\Adrian\Pulpit\LV DM XXL\xxl.PWN(5705) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Documents and Settings\Adrian\Pulpit\LV DM XXL\xxl.PWN(5712) : warning 219: local variable "str" shadows a variable at a preceding level
C:\Documents and Settings\Adrian\Pulpit\LV DM XXL\xxl.PWN(5796) : warning 219: local variable "string" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
10 Warnings.
I problem po zabiciu gracza czasami robi crasha
czy to przez te warningi ?
Wysłany: 2009-01-04, 16:22
Zurrek
Wiek: 30 Na forum: 6543 dni Posty: 312
Nick w MP: Zurrek
Piwa : 1890
Pousuwaj to wszystko co masz w tych linijkach, bo to ju? zosta?o u?yte.
Wysłany: 2009-01-04, 18:40
omen_17
Wiek: 35 Na forum: 6616 dni Posty: 5
Kod: C:\Documents and Settings\Adrian\Pulpit\LV DM XXL\xxl.PWN(683) : error 017: undefined symbol "string"
C:\Documents and Settings\Adrian\Pulpit\LV DM XXL\xxl.PWN(683) : error 017: undefined symbol "string"
C:\Documents and Settings\Adrian\Pulpit\LV DM XXL\xxl.PWN(683) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Adrian\Pulpit\LV DM XXL\xxl.PWN(683) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Wysłany: 2009-01-04, 18:43
Jimmy J
suy shatan!
Wiek: 32 Na forum: 6699 dni Posty: 265
Piwa : 3264
omen_17 , nad linijk? z errorem daj:
Kod:
Wysłany: 2009-01-04, 18:43
AdiX
Wiek: 31 Na forum: 6897 dni Posty: 100
Piwa : 932
omen_17 , gdzie? w publicu/na g?rze
Kod:
Wysłany: 2009-01-04, 23:43
layer
Wiek: 31 Na forum: 6803 dni Posty: 7
Piwa : 94
witam. znalaz?em pewien skrypt, i kiedy pr?buj? go skompilowa?, wyskakuje mi b??d:
Kod: C:\Documents and Settings\Bartek\Pulpit\News.pwn(35) : error 017: undefined symbol "PlayerInfo"
za pomoc
Podpis
AMD Athlon 64 X2 5600+; DDR2 2GB Goodram; HDD SAMSUNG 320GB SATA2; GeForce 9600GT 512MB DDR3 256bit.
Tagi: błędy :: przy :: kompilacji :: rozwiązanie
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: