Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2012-03-16, 11:27


B!4CK

Never give UP!






Wiek: 32
Na forum: 5809 dni
Posty: 1047
Nick w MP: John

Piwa: 1891

Respekt: 124,2
Respekt: 124,2

Cze?? ot?? jest takie co? :
Kod:

C:\Documents and Settings\1\Pulpit\igora\gta\larency-wies.pwn(30703) : warning 202: number of arguments does not match definition
C:\Documents and Settings\1\Pulpit\igora\gta\larency-wies.pwn(30703) : warning 202: number of arguments does not match definition
C:\Documents and Settings\1\Pulpit\igora\gta\larency-wies.pwn(30704) : warning 202: number of arguments does not match definition
C:\Documents and Settings\1\Pulpit\igora\gta\larency-wies.pwn(30704) : warning 202: number of arguments does not match definition
C:\Documents and Settings\1\Pulpit\igora\gta\larency-wies.pwn(30705) : warning 202: number of arguments does not match definition
C:\Documents and Settings\1\Pulpit\igora\gta\larency-wies.pwn(30705) : warning 202: number of arguments does not match definition
C:\Documents and Settings\1\Pulpit\igora\gta\larency-wies.pwn(30706) : warning 202: number of arguments does not match definition
C:\Documents and Settings\1\Pulpit\igora\gta\larency-wies.pwn(30706) : warning 202: number of arguments does not match definition
C:\Documents and Settings\1\Pulpit\igora\gta\larency-wies.pwn(30707) : warning 202: number of arguments does not match definition
C:\Documents and Settings\1\Pulpit\igora\gta\larency-wies.pwn(30707) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

Header size: 11628 bytes
Code size: 1753704 bytes
Data size: 6181236 bytes
Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 7962952 bytes

10 Warnings.


Wiem ,?e to warningi z definicj?

Linie :
Kod:

forward LicznikPojazd();
public LicznikPojazd()
{
foreach(Player,i)
{
if(GetPlayerState(i)==PLAYER_STATE_DRIVER)
{
VehID=GetPlayerVehicleID(i);
if(GetPlayerSpeed(i,true)>4&&GetPlayerSpeed(i,true)<10){ SamochodInfo[VehID][sPrzebieg]+=0.003; }
else if(GetPlayerSpeed(i,true)>10&&GetPlayerSpeed(i,true)<50){ SamochodInfo[VehID][sPrzebieg]+=0.006; }
else if(GetPlayerSpeed(i,true)>50&&GetPlayerSpeed(i,true)<100){ SamochodInfo[VehID][sPrzebieg]+=0.01; }
else if(GetPlayerSpeed(i,true)>100&&GetPlayerSpeed(i,true)<150){ SamochodInfo[VehID][sPrzebieg]+=0.02; }
else if(GetPlayerSpeed(i,true)>160&&GetPlayerSpeed(i,true)<200){ SamochodInfo[VehID][sPrzebieg]+=0.04; }
GetVehicleParamsEx(VehID,engine,lights,alarm,doors,bonnet,boot,objective);
if(engine)
{
if(SamochodInfo[VehID][sPaliwoTyp]==1) vPaliwoTxt="Pb";
else if(SamochodInfo[VehID][sPaliwoTyp]==2) vPaliwoTxt="ON";
else if(SamochodInfo[VehID][sPaliwoTyp]==3) vPaliwoTxt="LPG";

SamochodInfo[VehID][sPrzebieg]+=dDystans;

GetVehicleHealth(VehID,vHP);
vHP = floatsub(vHP, 250.0);

format(lstr, sizeof(lstr), "~p~%s~n~~w~Predkosc: ~r~%d ~y~km/h~n~~w~Stan HP: ~r~%.0f ~y~%%~n~~w~Przebieg: ~r~%.00f ~y~km~n~~w~Paliwo (%s): ~r~%d/%d ~y~l",
SamochodInfo[VehID][sNazwa],
GetPlayerSpeed(i),
(vHP/750)*100,
SamochodInfo[VehID][sPrzebieg]+=0.5, //Szybko?? nabijania KM
vPaliwoTxt,
SamochodInfo[VehID][sPaliwo],
SamochodInfo[VehID][sPaliwoMax]);
TextDrawSetString(Licznik[i],lstr);



Jeszcze cmd:stats
Kod:

C:\Documents and Settings\1\Pulpit\igora\gta\larency-wies.pwn(31401) : error 017: undefined symbol "M"
C:\Documents and Settings\1\Pulpit\igora\gta\larency-wies.pwn(31401) : error 029: invalid expression, assumed zero
C:\Documents and Settings\1\Pulpit\igora\gta\larency-wies.pwn(31401) : error 029: invalid expression, assumed zero
C:\Documents and Settings\1\Pulpit\igora\gta\larency-wies.pwn(31401) : fatal error 107: too many error messages on one line



Kod :
Kod:

CMD:stats(playerid, params[])
{
new str[400],plectext[20],rasatext[20];
if(PlayerInfo[playerid][pPlec]==1) plectext=M??czyzna; else plectext=Kobieta;
if(PlayerInfo[playerid][pRasa]==1) rasatext=Bia?a;
else if(PlayerInfo[playerid][pRasa]==2) rasatext=Czarna;
else if(PlayerInfo[playerid][pRasa]==3) rasatext=???ta;
format(str,sizeof(str),MAPALogin OOC: BIALY%s\nMAPAPoziom Admina: BIALY%d\nMAPAWizyt na serwerze: BIALY%d\nMAPAPrzegrane godziny: BIALY%d\nMAPAMinut do pe?nej godziny: BIALY%d\nMAPAPunkty Score: BIALY%d\nMAPAP?e?: BIALY%s\nMAPAWiek: BIALY%d\nMAPARasa: BIALY%s\nMAPAPortfel: BIALY%d$\nMAPAStan konta bankowego: BIALY%d$,
PlayerInfo[playerid][pNickOOC],
PlayerInfo[playerid][pAdmin],
PlayerInfo[playerid][pOdwiedziny],
PlayerInfo[playerid][pGodziny],
60-PlayerInfo[playerid][pMinuty],
PlayerInfo[playerid][pScore],
plectext,
PlayerInfo[playerid][pWiek],
rasatext,
dKasa[playerid],
PlayerInfo[playerid][pBank]);
Info(playerid,str);
return 1;
}


Podpis
Cześć
! :)


Projekt, który poruszy scenę platformy SA:MP!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-03-16, 12:48


Colin_Carleone







Wiek: 30
Na forum: 5725 dni
Posty: 373

Piwa: 4800

Respekt: 83,3

To nie jest przypadkiem mapa Honest RolePlay ?

Podaj chocia? nazw? mapy jak? masz... Bo wiem ?e w honest wyst?puj? b??dy.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-03-16, 12:58


B!4CK

Never give UP!






Wiek: 32
Na forum: 5809 dni
Posty: 1047
Nick w MP: John

Piwa: 1891

Respekt: 124,2
Respekt: 124,2

up@ to jest Honest-RP ,ale j? przerabiam.

Podpis
Cześć
! :)


Projekt, który poruszy scenę platformy SA:MP!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-03-16, 13:02


Colin_Carleone







Wiek: 30
Na forum: 5725 dni
Posty: 373

Piwa: 4800

Respekt: 83,3

Na razie jestem w szkole , jak wr?c? do domu dam ci kod z mojej przer?bki ;)

[ Dodano: 2012-03-16, 16:09 ]
Wi?c ju? wr?ci?em :D Chwytaj... Tak o..

To jest licznik :

Kod:


forward LicznikPojazd();
public LicznikPojazd()
{
foreach(Player,i)
{
if(GetPlayerState(i)==PLAYER_STATE_DRIVER)
{
VehID=GetPlayerVehicleID(i);

GetVehicleParamsEx(VehID,engine,lights,alarm,doors,bonnet,boot,objective);
if(engine)
{
if(SamochodInfo[VehID][sPaliwoTyp]==1) vPaliwoTxt="Pb";
else if(SamochodInfo[VehID][sPaliwoTyp]==2) vPaliwoTxt="ON";
else if(SamochodInfo[VehID][sPaliwoTyp]==3) vPaliwoTxt="LPG";

SamochodInfo[VehID][sPrzebieg]+=dDystans;

GetVehicleHealth(VehID,vHP);
vHP = floatsub(vHP, 250.0);

format(lstr, sizeof(lstr), "~p~%s~n~~w~Predkosc: ~r~%d ~y~km/h~n~~w~Stan HP: ~r~%.0f ~y~%%~n~~w~Przebieg: ~r~%.00f ~y~km~n~~w~Paliwo (%s): ~r~%d/%d ~y~l",
SamochodInfo[VehID][sNazwa],
GetPlayerSpeed(i),
(vHP/750)*100,
SamochodInfo[VehID][sPrzebieg]/1000.0,
vPaliwoTxt,
SamochodInfo[VehID][sPaliwo],
SamochodInfo[VehID][sPaliwoMax]);
TextDrawSetString(Licznik[i],lstr);

GetVehiclePos(VehID,dOstatniX[i],dOstatniY[i],dOstatniZ[i]);
}//engine
else
{
if(GetPlayerSpeed(i)>=35)
{
SendClientMessage(i,KOLOR_AC,"AC: "BIALY"Zosta?e? zbanowany, pow?d: NOP SetVehicleEngine/AirBrk");
format(ACString, sizeof(ACString),"AC: "BIALY"Nick: %s",Nick[i]);
SendClientMessage(i,KOLOR_AC,ACString);
format(ACString, sizeof(ACString),"AC: "BIALY"IP: %s",dIP[i]);
SendClientMessage(i,KOLOR_AC,ACString);
//
format(ACString, sizeof(ACString),"~r~(%d)%s zostal zbanowany~n~~y~przez: AntyCheat~n~~w~Za: NOP SetVehicleEngine/AirBrk",i,Nick[i]);
NapisText(ACString);
//
dBan(i,"AC: NOP SetVehicleEngine");
return 1;
}
}
}//player state
}
return 1;
}


A co do tej komendy :

Kod:

CMD:stats


Nie mam takiej , bo nie robi?em :P

Ale sprawd? licznik czy dzia?a ;)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-03-17, 10:25


B!4CK

Never give UP!






Wiek: 32
Na forum: 5809 dni
Posty: 1047
Nick w MP: John

Piwa: 1891

Respekt: 124,2
Respekt: 124,2

up@ zrobi?em cmd:stats ,ale dalej mam error'y :

Kod:

C:\Documents and Settings\1\Pulpit\igora\gta\larency-wies.pwn(31422) : error 017: undefined symbol "M"
C:\Documents and Settings\1\Pulpit\igora\gta\larency-wies.pwn(31422) : error 029: invalid expression, assumed zero
C:\Documents and Settings\1\Pulpit\igora\gta\larency-wies.pwn(31422) : error 029: invalid expression, assumed zero
C:\Documents and Settings\1\Pulpit\igora\gta\larency-wies.pwn(31422) : 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.


Linijka :
Kod:

if(PlayerInfo[playerid][pPlec]==1) plectext=M??czyzna; else plectext=Kobieta;


Podpis
Cześć
! :)


Projekt, który poruszy scenę platformy SA:MP!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-03-17, 10:58


Colin_Carleone







Wiek: 30
Na forum: 5725 dni
Posty: 373

Piwa: 4800

Respekt: 83,3

"blackelegy" napisał/a:

up@ zrobi?em cmd:stats ,ale dalej mam error'y :

Kod:

C:\Documents and Settings\1\Pulpit\igora\gta\larency-wies.pwn(31422) : error 017: undefined symbol "M"
C:\Documents and Settings\1\Pulpit\igora\gta\larency-wies.pwn(31422) : error 029: invalid expression, assumed zero
C:\Documents and Settings\1\Pulpit\igora\gta\larency-wies.pwn(31422) : error 029: invalid expression, assumed zero
C:\Documents and Settings\1\Pulpit\igora\gta\larency-wies.pwn(31422) : fatal error 107: too many error messages on one line

Compilation gtaonline compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.


Linijka :
Kod:

if(PlayerInfo[playerid][pPlec]==1) plectext=M??czyzna; else plectext=Kobieta;


A sprawd? bez polskich znak?w.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-03-17, 11:23


B!4CK

Never give UP!






Wiek: 32
Na forum: 5809 dni
Posty: 1047
Nick w MP: John

Piwa: 1891

Respekt: 124,2
Respekt: 124,2

Hmm... Dalej nic z tego.

G?ra mapy :
Kod:

//Statystyki
new Mezczyzna;
new Kobieta;
new Biala;
new Czarna;
new Zolta;
new MAPALogin;



Kod:

CMD:stats(playerid, params[]) //Statystyki gracza przez komend?
{
new str[400],plectext[20],rasatext[20];
if(PlayerInfo[playerid][pPlec]==1) plectext=Mezczyzna; else plectext=Kobieta;
if(PlayerInfo[playerid][pRasa]==1) rasatext=Biala;
else if(PlayerInfo[playerid][pRasa]==2) rasatext=Czarna;
else if(PlayerInfo[playerid][pRasa]==3) rasatext=Zolta;
format(str,sizeof(str),MAPALogin OOC: BIALY%s\nMAPAPoziom Admina: BIALY%d\nMAPAWizyt na serwerze: BIALY%d\nMAPAPrzegrane godziny: BIALY%d\nMAPAMinut do pelnej godziny: BIALY%d\nMAPAPunkty Score: BIALY%d\nMAPAPlec: BIALY%s\nMAPAWiek: BIALY%d\nMAPARasa: BIALY%s\nMAPAPortfel: BIALY%d$\nMAPAStan konta bankowego: BIALY%d$,
PlayerInfo[playerid][pNickOOC],
PlayerInfo[playerid][pAdmin],
PlayerInfo[playerid][pOdwiedziny],
PlayerInfo[playerid][pGodziny],
60-PlayerInfo[playerid][pMinuty],
PlayerInfo[playerid][pScore],
plectext,
PlayerInfo[playerid][pWiek],
rasatext,
dKasa[playerid],
PlayerInfo[playerid][pBank]);
Info(playerid,str);
return 1;
}


Errory :

Kod:

C:\Documents and Settings\1\Pulpit\igora\gta\larency-wies.pwn(31410) : error 033: array must be indexed (variable "plectext")
C:\Documents and Settings\1\Pulpit\igora\gta\larency-wies.pwn(31410) : error 033: array must be indexed (variable "plectext")
C:\Documents and Settings\1\Pulpit\igora\gta\larency-wies.pwn(31411) : error 033: array must be indexed (variable "rasatext")
C:\Documents and Settings\1\Pulpit\igora\gta\larency-wies.pwn(31412) : error 033: array must be indexed (variable "rasatext")
C:\Documents and Settings\1\Pulpit\igora\gta\larency-wies.pwn(31413) : error 033: array must be indexed (variable "rasatext")
C:\Documents and Settings\1\Pulpit\igora\gta\larency-wies.pwn(31414) : error 035: argument type mismatch (argument 3)
C:\Documents and Settings\1\Pulpit\igora\gta\larency-wies.pwn(31414) : error 001: expected token: "-string end-", but found "-identifier-"
C:\Documents and Settings\1\Pulpit\igora\gta\larency-wies.pwn(31414) : error 017: undefined symbol "s"
C:\Documents and Settings\1\Pulpit\igora\gta\larency-wies.pwn(31414) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


9 Errors.



Je?li kto? wie jak dobrze to naprawi? b?dzie piwo

Podpis
Cześć
! :)


Projekt, który poruszy scenę platformy SA:MP!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-03-17, 13:48


Raydex







Wiek: 36
Na forum: 6037 dni
Posty: 138

Piwa: 1043

Respekt: 41,7

Zr?b tak:

Kod:

CMD:stats(playerid, cmdtext[])
{
new str[400],plectext[20],rasatext[20];
if(PlayerInfo[playerid][pPlec]==1) plectext="M??czyzna"; else plectext="Kobieta";

if(PlayerInfo[playerid][pRasa]==1) rasatext="Bia?a";
else if(PlayerInfo[playerid][pRasa]==2) rasatext="Czarna";

format(str,sizeof(str),""MAPA"Login OOC: "BIALY"%s\n"MAPA"Poziom Admina: "BIALY"%d\n"MAPA"Wizyt na serwerze: "BIALY"%d\n"MAPA"Przegrane godziny: "BIALY"%d\n"MAPA"Minut do pe?nej godziny: "BIALY"%d\n"MAPA"Punkty Score: "BIALY"%d\n"MAPA"P?e?: "BIALY"%s\n"MAPA"Wiek: "BIALY"%d\n"MAPA"Rasa: "BIALY"%s\n"MAPA"Portfel: "BIALY"%d$\n"MAPA"Stan konta bankowego: "BIALY"%d$",
PlayerInfo[playerid][pNickOOC],
PlayerInfo[playerid][pAdmin],
PlayerInfo[playerid][pOdwiedziny],
PlayerInfo[playerid][pGodziny],
60-PlayerInfo[playerid][pMinuty],
PlayerInfo[playerid][pScore],
plectext,
PlayerInfo[playerid][pWiek],
rasatext,
dKasa[playerid],
PlayerInfo[playerid][pBank]);
GuiInfo(playerid,str);
return 1;
}


Masz namieszane w kodzie, brakuje np. cudzys?ow?w.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-03-17, 17:55


Monster_92







Wiek: 33
Na forum: 5194 dni
Posty: 15

Piwa: 6

Respekt: 50

Spr?buj tak
Kod:

if(PlayerInfo[playerid][pPlec]==1) plectext="M??czyzna"; else plectext="Kobieta";


Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-03-17, 20:57


B!4CK

Never give UP!






Wiek: 32
Na forum: 5809 dni
Posty: 1047
Nick w MP: John

Piwa: 1891

Respekt: 124,2
Respekt: 124,2

Dzi?kuj? serdecznie. Teraz dzia?a.
?le zrobi?em na g?rze za du?o definicji doda?em i te errory.
Dzia?a prawid?owo! :) )

//Lock

Podpis
Cześć
! :)


Projekt, który poruszy scenę platformy SA:MP!
Postaw piwo autorowi tego posta
 

 
Tagi: brak :: definicji.
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » PAWN » [GF] Brak definicji. + Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku