Wysłany: 2009-11-28, 10:59
Michaloste
RolePlay Master.
Wiek: 30 Na forum: 6253 dni Posty: 16
Piwa : 532
Prosze o pomoc .
Kod: C:\DOCUME~1\SZMIRA~1\Pulpit\LSC_RP~1\LSCRP1~1\LSCRP(1).pwn(4793) : warning 219: local variable "rand" shadows a variable at a preceding level
C:\DOCUME~1\SZMIRA~1\Pulpit\LSC_RP~1\LSCRP1~1\LSCRP(1).pwn(16739) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\DOCUME~1\SZMIRA~1\Pulpit\LSC_RP~1\LSCRP1~1\LSCRP(1).pwn(26116) : warning 219: local variable "carid" shadows a variable at a preceding level
C:\DOCUME~1\SZMIRA~1\Pulpit\LSC_RP~1\LSCRP1~1\LSCRP(1).pwn(26380) : warning 219: local variable "carid" shadows a variable at a preceding level
C:\DOCUME~1\SZMIRA~1\Pulpit\LSC_RP~1\LSCRP1~1\LSCRP(1).pwn(35186) : warning 219: local variable "carid" shadows a variable at a preceding level
C:\DOCUME~1\SZMIRA~1\Pulpit\LSC_RP~1\LSCRP1~1\LSCRP(1).pwn(52782) : warning 203: symbol is never used: "skoczyl"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Header size: 8412 bytes
Code size: 2097900 bytes
Data size: 3019820 bytes
Stack/heap size: 16384 bytes; estimated max. usage=4904 cells (19616 bytes)
Total requirements: 5142516 bytes
6 Warnings.
Oto te linijki
4793: Kod: new rand = random(sizeof(gHotelSpawn)); //Losowanie spawnu z tablicy gHotelSpawn
16739: Kod:
26116: Kod:
26380: Kod:
35186: Kod: new carid = CreateVehicle(car, X,Y,Z, 0.0, color1, color2,
3600000);
52782: Tu jest co? dziwnego, bo ta mapa ma tylko 52781 linijek
Wysłany: 2009-11-28, 12:22
xqz
otaku desu!
Wiek: 32 Na forum: 6504 dni Posty: 723
Nick w MP: xqz
Piwa : 5465
"Michaloste" napisał/a :4793: Kod:
new rand = random(sizeof(gHotelSpawn)); //Losowanie spawnu z tablicy gHotelSpawn
16739: Kod:
new tmp[256];
26116: Kod:
new carid;
26380: Kod:
new carid;
35186: Kod:
new carid = CreateVehicle(car, X,Y,Z, 0.0, color1, color2,
3600000);
Usun te liniki a z linijka 35186 zamiast carid daj carids i w tej samoej cmd taj carids by nie zepsuc komende a jednoczesnie usunac warna
a w 4793 zamiast new rand daj np. new randzik by nie uszkodzic cmd, i nizej w tym kodzie tez musisz zmienic z random na randzik
"Michaloste" napisał/a :52782: Tu jest co? dziwnego, bo ta mapa ma tylko 52781 linijek
usun definicje skoczyl, bo zdefiniowales ale nigdzie nie uzyles..
Wysłany: 2009-11-28, 12:38
Michaloste
RolePlay Master.
Wiek: 30 Na forum: 6253 dni Posty: 16
Piwa : 532
Tutaj gdzie m?wi?e?, abym dal ' new randzik ' oraz ' carids ' to nic nie da?o, lecz mnie warning?w .
Kod: C:\DOCUME~1\SZMIRA~1\Pulpit\LSC_RP~1\LSCRP1~1\LSCRP(1).pwn(4792) : warning 204: symbol is assigned a value that is never used: "randzik"
C:\DOCUME~1\SZMIRA~1\Pulpit\LSC_RP~1\LSCRP1~1\LSCRP(1).pwn(16727) : warning 219: local variable "tmp" shadows a variable at a preceding level
C:\DOCUME~1\SZMIRA~1\Pulpit\LSC_RP~1\LSCRP1~1\LSCRP(1).pwn(35172) : warning 204: symbol is assigned a value that is never used: "carids"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Header size: 8412 bytes
Code size: 2097400 bytes
Data size: 3012520 bytes
Stack/heap size: 16384 bytes; estimated max. usage=4904 cells (19616 bytes)
Total requirements: 5134716 bytes
3 Warnings.
//edit:
linijka 16727 to by?o Kod: usuno?em i nie ma czyli
zosta?y 2 warningi
#Down:
Czyli, bo nie jestem jakim? zawalistym pawnerem . xdd
Ostatnio zmieniony przez Michaloste 2009-11-28, 12:43, w całości zmieniany 2 razy
Wysłany: 2009-11-28, 12:42
xqz
otaku desu!
Wiek: 32 Na forum: 6504 dni Posty: 723
Nick w MP: xqz
Piwa : 5465
Michaloste , nie uzyte sa te definicje..
Wysłany: 2009-11-28, 13:17
Nick_Willson
Wiek: 35 Na forum: 6143 dni Posty: 2
mam cos takiego
Cytat: #include <a_samp>
new patriot1;
new patriot2;
new patriot3;
new patriot4;
new rhino1;
new rhino2;
new ciezarowka;
new hunter;
new hydra;
public OnGameModeInit()
{
patriot1 = CreateVehicle(470, 2746.4275, -2448.707, 13.3088, 271, -1, -1, 120000); //Patriot1
patriot2 = CreateVehicle(470, 2746.2769, -2442.4915, 13.3036, 271, -1, -1, 120000); //Patriot2
patriot3 = CreateVehicle(470, 2746.6252, -2461.0518, 13.3088, 271, -1, -1, 120000); //Patriot3
patriot4 = CreateVehicle(470, 2744.957, -2467.8433, 13.3088, 271, -1, -1, 120000); //Patirot4
rhino1 = CreateVehicle(432, 2785.3364, -2418.0483, 13.2946, 101, -1, -1, 120000); //Tank
rhino2 = CreateVehicle(432, 2786.2351, -2494.2158, 13.3126, 90, -1, -1, 120000); //Samochod
ciezarowka = CreateVehicle(433, 2785.8159, -2455.9783, 13.2945, 78, -1, -1, 120000); //Ciezarowka
hunter = CreateVehicle(425, 2758.9666, -2399.3628, 13.2932, 45, -1, -1, 120000); //Hunter
hydra = CreateVehicle(520, 2764.0063, -2504.3923, 13.2879, 90, -1, -1, 120000); //Hydra
return 1;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(GetPlayerVehicleID(playerid) == patriot1 || GetPlayerVehicleID(playerid) == patriot2 || GetPlayerVehicleID(playerid) == patriot3 || GetPlayerVehicleID(playerid) == patriot4 || GetPlayerVehicleID(playerid) == rhino1 || GetPlayerVehicleID(playerid) == rhino2 || GetPlayerVehicleID(playerid) == ciezarowka || GetPlayerVehicleID(playerid) == hunter || GetPlayerVehicleID(playerid) == hydra ) //zamiast h1 dajemy znak jakim zaznaczyli?my auto.
{
if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3){ //Tutaj edytujemy i zamiast 18 wstawiamy jaka frakcja b?dzia mia?a dost?p do auta
}else{
SendClientMessage(playerid,0x007100FF, "Nie jeste? cz?onkiem USMC."); //Tutaj dajemy co ma si? dzia?, gdy kto? chce nie autoryzowanie wej?c do auta
RemovePlayerFromVehicle(playerid);
}
return 1;
}
i wyskakuja mi takie cos i nie wiem dlaczego
Cytat:
C:\Documents and Settings\smart\Pulpit\Oskryptowanie samochodow NG.pwn(139) : error 017: undefined symbol "PlayerInfo"
C:\Documents and Settings\smart\Pulpit\Oskryptowanie samochodow NG.pwn(139) : warning 215: expression has no effect
C:\Documents and Settings\smart\Pulpit\Oskryptowanie samochodow NG.pwn(139) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\smart\Pulpit\Oskryptowanie samochodow NG.pwn(139) : error 029: invalid expression, assumed zero
C:\Documents and Settings\smart\Pulpit\Oskryptowanie samochodow NG.pwn(139) : 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.
jestem sredni w PAWNO i nie zawsze wiem co sie dzieje
stawiam za rozwiazanie Dziekuje
Wysłany: 2009-11-28, 13:24
xqz
otaku desu!
Wiek: 32 Na forum: 6504 dni Posty: 723
Nick w MP: xqz
Piwa : 5465
Nick_Willson , Cytat: undefined symbol PlayerInfo
nie ma w mapie czegos takiego Jak PlayerInfo..
Musisz zdefiniowac to, bo widze ze z mapy RP wyciete
Wysłany: 2009-11-28, 13:39
The Reary
Wiek: 47 Na forum: 6471 dni Posty: 69
Nick w MP: TheReary
Piwa : 2446
Kod:
C:\Documents and Settings\smart\Pulpit\Oskryptowanie samochodow NG.pwn(139) : error 017: undefined symbol PlayerInfo
=Brak zdefiniowania. Zdefiniuj to to error zniknie.
Wysłany: 2009-11-28, 13:58
Nick_Willson
Wiek: 35 Na forum: 6143 dni Posty: 2
chcialbym to zrobic w postaci FS-a. Czy sie da a jezeli tak to w jaki sposob.
moze macie gotowe cos takiego
Wysłany: 2009-12-07, 21:21
Shey
Wiek: 35 Na forum: 6136 dni Posty: 1
Bardzo potrzebuje pomocy z jedn? mapk? by Ja !
Nie wychodzi mi zrobienia compile ...
Oto b??d:
Kod: C:\Documents and Settings\ADMIN\Pulpit\?\Server.amx\gamemodes\Drifts.pwn(147) : error 017: undefined symbol "Split"
C:\Documents and Settings\ADMIN\Pulpit\?\Server.amx\gamemodes\Drifts.pwn(172) : error 017: undefined symbol "floatval"
C:\Documents and Settings\ADMIN\Pulpit\?\Server.amx\gamemodes\Drifts.pwn(184) : error 017: undefined symbol "Split"
C:\Documents and Settings\ADMIN\Pulpit\?\Server.amx\gamemodes\Drifts.pwn(184) : warning 215: expression has no effect
C:\Documents and Settings\ADMIN\Pulpit\?\Server.amx\gamemodes\Drifts.pwn(184) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\ADMIN\Pulpit\?\Server.amx\gamemodes\Drifts.pwn(184) : error 029: invalid expression, assumed zero
C:\Documents and Settings\ADMIN\Pulpit\?\Server.amx\gamemodes\Drifts.pwn(184) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.
B?d? bardzo wdzi?czny za pomoc™
Wysłany: 2009-12-08, 07:36
donior
Is Pro
Wiek: 30 Na forum: 6461 dni Posty: 24
Piwa : 226
Shey , pokaz linikji ;/
Podpis
[shadow=red]
Służę pomocą na forum.. Nie na Gadu, ani PW!
Nie mam czasu na bzdety, szczególnie, że jest ich
cholernie dużo [/shadow]
Wysłany: 2009-12-08, 07:54
speed12
..:: ScriptKinG ::..
Wiek: 30 Na forum: 6815 dni Posty: 61
Piwa : 3404
Shey , najprawdopodobniej :
"Shey" napisał/a :C:\Documents and Settings\ADMIN\Pulpit\ \Server.amx\gamemodes\Drifts.pwn(184) : error 017: undefined symbol "Split"
Kod:
Split(s1[], s2[], s3[]=""){ // By Luby
new rxx[256];
format(rxx, 256, "%s%s%s", s1, s2, s3);
return rxx;
}
"Shey" napisał/a :C:\Documents and Settings\ADMIN\Pulpit\ \Server.amx\gamemodes\Drifts.pwn(172) : error 017: undefined symbol "floatval"
mo?liwe ?e to :
Kod:
floatval(Float:val){
new str[256];
format(str, 256, "%.0f", val);
return todec(str);
}
Podpis
Moje dzieła:
[URL=viewtopic.php?t=9905]PPS 3.5[/URL]
[URL=viewtopic.php?t=33325][img]Big Admins House[/URL]
[URL=viewtopic.php?t=34591]TruckMania[/URL]
Wysłany: 2009-12-09, 12:47
Mike1010
Wiek: 42 Na forum: 6561 dni Posty: 6
Piwa : 6
Mam takie errory:
Kod: C:\Documents and Settings\Micha?\Pulpit\gf.pwn(6163) : error 028: invalid subscript (not an array or too many subscripts): "InfoSamochodu"
C:\Documents and Settings\Micha?\Pulpit\gf.pwn(6163) : warning 215: expression has no effect
C:\Documents and Settings\Micha?\Pulpit\gf.pwn(6163) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Micha?\Pulpit\gf.pwn(6163) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Micha?\Pulpit\gf.pwn(6163) : fatal error 107: too many error messages on one line
linijka:
Kod: dini_Set(string, "Wlasciciel", InfoSamochodu[s][Wlasciciel]);
Wysłany: 2009-12-16, 20:48
PeLLe
Wiek: 38 Na forum: 6445 dni Posty: 14
Kod: C:\Documents and Settings\Pele.KOMP\Pulpit\SAD.pwn(2) : fatal error 100: cannot read from file: "dudb"
Mam taki problem prosze o pomoc postawie browca !
Wysłany: 2009-12-16, 20:52
xqz
otaku desu!
Wiek: 32 Na forum: 6504 dni Posty: 723
Nick w MP: xqz
Piwa : 5465
PeLLe , ? Nie masz includa dudb..
Wysłany: 2009-12-16, 20:53
PeLLe
Wiek: 38 Na forum: 6445 dni Posty: 14
xqz ,
jest, oto kawa?ek kodu:
Kod:
#include <a_samp>
#include <dudb>
#include <colors> // Zawiera definicje kolor?w
#pragma tabsize 0
Tagi: błędy :: przy :: kompilacji :: rozwiązanie
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: