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

Wysłany: 2009-04-30, 13:27


adrian_pl_20







Wiek: 31
Na forum: 6780 dni
Posty: 155
Nick w MP: adrian_w

Piwa: 1568

Respekt: 111
Respekt: 111

po ostatniej komendzie daj
Kod:

return 0;
}

i to
Kod:

new winda;
daj na samej g?rze mapy lub skryptu
Pod includami

Podpis
Oglądaj filmy i seriale online za darmo, bez reklam i limitów

http://maxkino.tv
Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-04-30, 14:00


sebek95

<[P|A|W|N]>






Wiek: 37
Na forum: 6725 dni
Posty: 18

Piwa: 8

Respekt: 50

Je?li uwa?asz mnie, za osobe nie wiedz?c?, ?e na ko?cu jest potrzebny
Kod:

return 0;
}
To jeste? w b??dzie.... a co do new'a to nie zauwa?y?em po prostu, ?e go tu wciubi?em :D
Piff ;P

Podpis

Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-04-30, 14:05


adrian_pl_20







Wiek: 31
Na forum: 6780 dni
Posty: 155
Nick w MP: adrian_w

Piwa: 1568

Respekt: 111
Respekt: 111

sebek95, ale mo?e na ko?cu komendy odrazu da?e?
Kod:

return 0;
}


Przy ostatniej komendzie jak masz
Kod:

return 1;
}

to pod nim dodaj to
Kod:

return 0;
}


Podpis
Oglądaj filmy i seriale online za darmo, bez reklam i limitów

http://maxkino.tv
Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-05-04, 17:54


ZiPeKs

new zipekS;






Wiek: 36
Na forum: 6530 dni
Posty: 43

Piwa: 469

Respekt: 50

Ostrzeżeń: 80%
C:\Documents and Settings\Szymon\Pulpit\serw\gamemodes\_TCM_.pwn(678) : error 017: undefined symbol "CanPing"
C:\Documents and Settings\Szymon\Pulpit\serw\gamemodes\_TCM_.pwn(678) : warning 215: expression has no effect
C:\Documents and Settings\Szymon\Pulpit\serw\gamemodes\_TCM_.pwn(678) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Szymon\Pulpit\serw\gamemodes\_TCM_.pwn(678) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Szymon\Pulpit\serw\gamemodes\_TCM_.pwn(678) : 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.



Pawn


public OnPlayerSpawn(playerid)
{
if(!CanPing[playerid][0])
{
CanPing[playerid][1] = true;

}
TextDrawShowForPlayer(playeridDane[playerid]);
SendClientMessage(playerid,COLOR_GREEN,"***Mi?ej Gry Na TuningS CarS MaP***");
SetPlayerInterior(playerid,0);
SetPlayerHealth(playerid,100);
SetPlayerArmour(playerid,100);



return 1;
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-05-04, 19:37


adrian_pl_20







Wiek: 31
Na forum: 6780 dni
Posty: 155
Nick w MP: adrian_w

Piwa: 1568

Respekt: 111
Respekt: 111

na g?rze mapy
Kod:

new CanPing[200];


Podpis
Oglądaj filmy i seriale online za darmo, bez reklam i limitów

http://maxkino.tv
Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-05-05, 16:36


ZiPeKs

new zipekS;






Wiek: 36
Na forum: 6530 dni
Posty: 43

Piwa: 469

Respekt: 50

Ostrzeżeń: 80%
to nic nie pomaga :/

Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-05-05, 16:38


AdiX







Wiek: 31
Na forum: 6898 dni
Posty: 100

Piwa: 932

Respekt: 50

Chyba widzicie

Kod:

CanPing[playerid][1]


Wi?c powinno by?

Kod:

new CanPing[MAX_PLAYERS][200];


a nie

Kod:

new CanPing[MAX_PLAYERS];


Podpis
Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-05-05, 16:51


ZiPeKs

new zipekS;






Wiek: 36
Na forum: 6530 dni
Posty: 43

Piwa: 469

Respekt: 50

Ostrzeżeń: 80%
Pawn
C:\Documents and Settings\Szymon\Pulpit\serw\gamemodes\_TCM_.pwn(699) : error 017undefined symbol "protectadmin"
C:\Documents and Settings\Szymon\Pulpit\serw\gamemodes\_TCM_.pwn(711) : error 017undefined symbol "maxping"
C:\Documents and Settings\Szymon\Pulpit\serw\gamemodes\_TCM_.pwn(716) : error 017undefined symbol "string"
C:\Documents and Settings\Szymon\Pulpit\serw\gamemodes\_TCM_.pwn(716) : error 017undefined symbol "string"
C:\Documents and Settings\Szymon\Pulpit\serw\gamemodes\_TCM_.pwn(716) : error 029invalid expressionassumed zero
C:\Documents and Settings\Szymon\Pulpit\serw\gamemodes\_TCM_.pwn(716) : fatal error 107too many error messages on one line



linijki:

Kod:


if(IsPlayerConnected(i) && IsPlayerAdmin(i) == protectadmin)
//-
if(GetPlayerPing(i) >= maxping)

//-
format(string, sizeof(string), "SERWER: %s (ID: %d) zosta? wyrzucony z Servera. Pow?d: Wysoki Ping | max: 500", Name, i);
:/

edit@

doda?em stringa:

Pawn
C:\Documents and Settings\Szymon\Pulpit\serw\gamemodes\_TCM_.pwn(196) : warning 219local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Szymon\Pulpit\serw\gamemodes\_TCM_.pwn(223) : warning 219local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Szymon\Pulpit\serw\gamemodes\_TCM_.pwn(700) : error 017undefined symbol "protectadmin"
C:\Documents and Settings\Szymon\Pulpit\serw\gamemodes\_TCM_.pwn(712) : error 017undefined symbol "maxping"
C:\Documents and Settings\Szymon\Pulpit\serw\gamemodes\_TCM_.pwn(757) : warning 219local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Szymon\Pulpit\serw\gamemodes\_TCM_.pwn(1046) : warning 219local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Szymon\Pulpit\serw\gamemodes\_TCM_.pwn(1071) : warning 219local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Szymon\Pulpit\serw\gamemodes\_TCM_.pwn(1191) : warning 219local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Szymon\Pulpit\serw\gamemodes\_TCM_.pwn(1263) : warning 219local variable "string" shadows a variable at a preceding level


Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-05-05, 17:02


Law







Wiek: 31
Na forum: 6581 dni
Posty: 39

Piwa: 1318

Respekt: 50

Kod:

Tak zdefiniowa?e? string?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-05-05, 17:08


ZiPeKs

new zipekS;






Wiek: 36
Na forum: 6530 dni
Posty: 43

Piwa: 469

Respekt: 50

Ostrzeżeń: 80%
tak .

Usun??em wszystkie warningi chcia?em napisa? ale si? nie zmie?ci?o :/


edit:

musisz to dawa? w [code2] ?


edit2:
powie kto? ocb

Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-05-07, 22:58


Amaru_Smith







Wiek: 33
Na forum: 6542 dni
Posty: 3

Piwa: 78

Respekt: 50

Ostrzeżeń: 100%
A wi?c nie dzia?aj? mi czaty takie jak: /o normalny czat przy klikni?ciu T /f /do /r
Czaty kt?re dzia?aj?: /b /s /k /l

Czat /b dzia?aj?cy:

Kod:

if(strcmp(cmd, "/b", true) == 0)//local ooc
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " Nie jeste? zalogowany !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "U?yj: /b [tekst]");
return 1;
}
format(string, sizeof(string), "%s m?wi: (( %s ))", sendername, result);
ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
printf("%s", string);
}
return 1;
}


Czat /o nie dzia?aj?cy:

Kod:

if(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " Nie jestes jeszzce zalogowany !");
return 1;
}
if ((noooc) && PlayerInfo[playerid][pAdmin] < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, " Chat (ooc) zostal wylaczony na jakis czas przez admina !");
return 1;
}
if(PlayerInfo[playerid][pMuted] == 1)
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, " Nie mozesz mowic, zostales wyciszony !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "UZYJ: (/o)oc [ooc chat]");
return 1;
}
format(string, sizeof(string), "(( %s (czat ooc): %s ))", sendername, result);
OOCOff(COLOR_OOC,string);
printf("%s", string);
}
return 1;
}


Co? si? skopci?o i nie wyskakuj? nic ?e kto? pisze na serwie.
Prosz? o szybk? pomoc!
Za pomoc daje 2 piwka z lod?wki :D

Podpis
[/URL]
Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-05-08, 11:30


Amaru_Smith







Wiek: 33
Na forum: 6542 dni
Posty: 3

Piwa: 78

Respekt: 50

Ostrzeżeń: 100%
w public OnPlayerCommandText ;/

Podpis
[/URL]
Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-05-12, 17:30


Grigor_Ivanov







Wiek: 35
Na forum: 6419 dni
Posty: 9
Nick w MP: Wolf



Respekt: 50

Ostrzeżeń: 100%
Kod:

C:\Documents and Settings\Michal\Desktop\gf.pwn(1834) : error 004: function "SetPlayerToTeamColor" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(1859) : error 004: function "SetPlayerToTeamColor" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(1879) : error 004: function "SetPlayerCriminal" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(1884) : error 004: function "SetPlayerCriminal" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(1948) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(1952) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(1964) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(1968) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(1972) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(1976) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(1980) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(1984) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(1988) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(2000) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(2004) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(2008) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(2012) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(2016) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(2028) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(2032) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(2036) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Michal\Desktop\gf.pwn(2048) : error 004: function "PlayerToPoint" is not implemented


Okolice linijki 2048
Kod:

return 0;
}

public IsAtCookPlace(playerid)
{
if(IsPlayerConnected(playerid))
{
if(PlayerToPoint(3.0,playerid,369.9786,-4.0798,1001.8589))
{//Cluckin Bell
return 1;
}
else if(PlayerToPoint(3.0,playerid,376.4466,-60.9574,1001.5078) || PlayerToPoint(3.0,playerid,378.1215,-57.4928,1001.5078))
{//Burgershotd))
{
if(PlayerToPoint(4.0,playerid,495.7801,-76.0305,998.7578) || PlayerToPoint(4.0,playerid,499.9654,-20.2515,1000.6797))
}//In grove street bar (with girlfriend), and in Havanna
return 1;
}
{
else if(PlayerToPoint(4.0,playerid,1215.9480,-13.3519,1000.9219) || PlayerToPoint(10.0,playerid,-2658.9749,1407.4136,906.2734))
}

return 0;
}
}
return 0;
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-05-12, 17:37


adrian_pl_20







Wiek: 31
Na forum: 6780 dni
Posty: 155
Nick w MP: adrian_w

Piwa: 1568

Respekt: 111
Respekt: 111

?le wszystko zrobi?es wychodzi na to ze
Jak gracz jest pod??czony i jest w jakims miejscu albo jakims to nic sie niedzieje i jest w jakims miejscu i jest w jakims miejscu ....
Bez sensu

Podpis
Oglądaj filmy i seriale online za darmo, bez reklam i limitów

http://maxkino.tv
Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-05-13, 20:05


eXtreme







Wiek: 35
Na forum: 6331 dni
Posty: 1



Respekt: 50

Witaj
!

Wsp?lnie z kumplem piszemy GameModa...
przy wstawianiu Menu Ammonation wyst?pi?y nast?puj?ce b??dy:
Kod:


Po b??dach mo?na wywnioskowa?, ?e brakuje znaku ";"
Nie wiem jednak,gdzie go umie?ci?...

Oto kilka Cord?w, ko?o kt?rych wyst?puje error:

Kod:

A oto skr?cony do 2 pozycji Kod Menu:

Kod:


,bardzo prosz? Ci? o pomoc.
W zamian oczywi?cie :arrow: :piwo:

///edit
Cord z b??dem:
NoCash; SendCMP; GameTFP; Deny; TPC(playerid, 0);

Ostatnio zmieniony przez eXtreme 2009-05-13, 22:19, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Tagi: błędy :: przy :: kompilacji :: rozwiązanie
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » PAWN » BŁĘDY PRZY KOMPILACJI - ROZWIĄZANIE Odpowiedz do tematu

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