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

Wysłany: 2009-01-19, 12:37


Zurrek







Wiek: 30
Na forum: 6543 dni
Posty: 312
Nick w MP: Zurrek

Piwa: 1890

Respekt: 50

W linijce 888 daj:
Kod:

if(strcmp("/wieza",cmdtext ,true) == 0)



I na pocz?tku OnPlayerCommandText daj:
Kod:

cmd = strtok(cmdtext,idx);


Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-01-19, 14:57


lokowgw

Grafika/Sponsoring






Wiek: 34
Na forum: 6466 dni
Posty: 47
Nick w MP: lokowgw

Piwa: 122

Respekt: 50

czyli ma byc tak:
Kod:

}
cmd = strtok(cmdtext,idx);
if(strcmp(cmdtext, "/wieza", true) == 0)

{
SetPlayerWorldBounds(playerid,200000,-200000,200000,-200000);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1544.518188,-1353.435058,329.474090);
ResetPlayerWeapons(playerid);
SendClientMessage(playerid, COLOR_GREEN,"Teleportowa?e? sie na wie?owcu w LS");
return 1;
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-01-19, 15:39


Zurrek







Wiek: 30
Na forum: 6543 dni
Posty: 312
Nick w MP: Zurrek

Piwa: 1890

Respekt: 50

Tak, na pocz?tku OnPlayerCommandText:
Kod:

cmd = strtok(cmdtext,idx);


A potem cmd:

Kod:

if(strcmp(cmdtext, "/wieza", true) == 0)

{
SetPlayerWorldBounds(playerid,200000,-200000,200000,-200000);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1544.518188,-1353.435058,329.474090);
ResetPlayerWeapons(playerid);
SendClientMessage(playerid, COLOR_GREEN,"Teleportowa?e? sie na wie?owcu w LS");
return 1;
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-01-19, 15:55


lokowgw

Grafika/Sponsoring






Wiek: 34
Na forum: 6466 dni
Posty: 47
Nick w MP: lokowgw

Piwa: 122

Respekt: 50

to mam teraz b??d taki:
Kod:

C:\Documents and Settings\loko\Pulpit\stuntek.pwn(887) : error 017: undefined symbol "cmd"
C:\Documents and Settings\loko\Pulpit\stuntek.pwn(887) : error 017: undefined symbol "strtok"
C:\Documents and Settings\loko\Pulpit\stuntek.pwn(888) : error 017: undefined symbol "cmdtext"


Podpis
Szukasz sponsora?
Pisz na PW! Sponsoruje Serwery Gta SanAndras:MultiPlayer jak i serwery Głosowe TeamSpeak2 !
Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-01-19, 16:04


Zurrek







Wiek: 30
Na forum: 6543 dni
Posty: 312
Nick w MP: Zurrek

Piwa: 1890

Respekt: 50

To na samej g?rze mapy:
Kod:

#include <strtok>


A to na pocz?tku OnPlayerCommandText:
Kod:

new cmd[256];
new cmdtext[256];


Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-01-19, 16:15


lokowgw

Grafika/Sponsoring






Wiek: 34
Na forum: 6466 dni
Posty: 47
Nick w MP: lokowgw

Piwa: 122

Respekt: 50

pomog?o ;) da?em Ci :piwo: bo sie nale?y a teraz mam ;) _

Kod:

C:\Documents and Settings\loko\Pulpit\stuntek.pwn(521) : warning 217: loose indentation
C:\Documents and Settings\loko\Pulpit\stuntek.pwn(611) : warning 217: loose indentation
C:\Documents and Settings\loko\Pulpit\stuntek.pwn(710) : warning 217: loose indentation
C:\Documents and Settings\loko\Pulpit\stuntek.pwn(711) : warning 217: loose indentation
C:\Documents and Settings\loko\Pulpit\stuntek.pwn(713) : warning 217: loose indentation
C:\Documents and Settings\loko\Pulpit\stuntek.pwn(720) : warning 217: loose indentation
C:\Documents and Settings\loko\Pulpit\stuntek.pwn(727) : warning 217: loose indentation
C:\Documents and Settings\loko\Pulpit\stuntek.pwn(762) : warning 217: loose indentation
C:\Documents and Settings\loko\Pulpit\stuntek.pwn(764) : warning 217: loose indentation
C:\Documents and Settings\loko\Pulpit\stuntek.pwn(767) : warning 217: loose indentation
C:\Documents and Settings\loko\Pulpit\stuntek.pwn(776) : warning 217: loose indentation
C:\Documents and Settings\loko\Pulpit\stuntek.pwn(981) : warning 217: loose indentation
C:\Documents and Settings\loko\Pulpit\stuntek.pwn(981) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\loko\Pulpit\stuntek.pwn(991) : warning 217: loose indentation
C:\Documents and Settings\loko\Pulpit\stuntek.pwn(1034) : warning 217: loose indentation
C:\Documents and Settings\loko\Pulpit\stuntek.pwn(1038) : error 017: undefined symbol "tmp"
C:\Documents and Settings\loko\Pulpit\stuntek.pwn(1039) : error 017: undefined symbol "tmp"
C:\Documents and Settings\loko\Pulpit\stuntek.pwn(1041) : error 017: undefined symbol "PlayerInfo"
C:\Documents and Settings\loko\Pulpit\stuntek.pwn(1041) : warning 215: expression has no effect
C:\Documents and Settings\loko\Pulpit\stuntek.pwn(1041) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\loko\Pulpit\stuntek.pwn(1041) : error 029: invalid expression, assumed zero
C:\Documents and Settings\loko\Pulpit\stuntek.pwn(1041) : fatal error 107: too many error messages on one line



Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-01-19, 16:20


Jimmy J

suy shatan!






Wiek: 32
Na forum: 6699 dni
Posty: 265

Piwa: 3264

Respekt: 54,4

lokowgw, g?ra mapy:
Kod:

#pragma tabsize 0


w komendzie z errorem:
Kod:

new tmp[256];
tmp = strtok(cmdtext,idx);


Podpis

Nie mam stóp...
Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-01-19, 16:25


lokowgw

Grafika/Sponsoring






Wiek: 34
Na forum: 6466 dni
Posty: 47
Nick w MP: lokowgw

Piwa: 122

Respekt: 50

dzieki kolejne :piwo: ;)

teraz :
Kod:

C:\Documents and Settings\loko\Pulpit\stuntek.pwn(982) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\loko\Pulpit\stuntek.pwn(1044) : error 017: undefined symbol "PlayerInfo"
C:\Documents and Settings\loko\Pulpit\stuntek.pwn(1044) : warning 215: expression has no effect
C:\Documents and Settings\loko\Pulpit\stuntek.pwn(1044) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\loko\Pulpit\stuntek.pwn(1044) : error 029: invalid expression, assumed zero
C:\Documents and Settings\loko\Pulpit\stuntek.pwn(1044) : fatal error 107: too many error messages on one line


[ Dodano: 2009-01-19, 16:32 ]
w tym 1044 jest komenda na JAILaz GF, i wsadzi?em na serwa stunta
ale to chyba nic nie ma do tego

[ Dodano: 2009-01-19, 16:33 ]
Kod:

if (PlayerInfo[playerid][pAdmin] >=0)
{
SendClientMessage(playerid, COLOR_WHITE, "U?yj '/aj' [ID Gracza] [Czas w min.] [Pow?d]");
return 1;
}
}
new playa;
new money;
new length = strlen(string);..........


Podpis
Szukasz sponsora?
Pisz na PW! Sponsoruje Serwery Gta SanAndras:MultiPlayer jak i serwery Głosowe TeamSpeak2 !
Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-01-19, 16:33


Jimmy J

suy shatan!






Wiek: 32
Na forum: 6699 dni
Posty: 265

Piwa: 3264

Respekt: 54,4

"lokowgw" napisał/a:

w tym 1044 jest komenda na JAILaz GF, i wsadzi?em na serwa stunta
ale to chyba nic nie ma do tego


ma i to bardzo du?o... kod GF'a r??ni si? od zwyk?ego kodu Pawn...
poka? kod tej ca?ej komendy :roll:

//UP. ten tw?j kod troch? bezsensu jest :p

Podpis

Nie mam stóp...
Ostatnio zmieniony przez Jimmy J 2009-01-19, 16:35, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-01-19, 16:34


lokowgw

Grafika/Sponsoring






Wiek: 34
Na forum: 6466 dni
Posty: 47
Nick w MP: lokowgw

Piwa: 122

Respekt: 50

usune?em tego jaila, znajde innego ma stunt,dm .. narazie bedzie bez ...
po wyje** jaila mam tylko to:

Kod:

C:\Documents and Settings\loko\Pulpit\stuntek.pwn(982) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\loko\Pulpit\stuntek.pwn(1198) : error 001: expected token: "-identifier-", but found "-end of file-"





[ Dodano: 2009-01-19, 16:35 ]
co do kodu po kropkach jeszcze jest go kawa? ;p

Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-01-19, 16:37


Jimmy J

suy shatan!






Wiek: 32
Na forum: 6699 dni
Posty: 265

Piwa: 3264

Respekt: 54,4

lokowgw, poka? kod :| tak to my nic nie zrobimy :/
sry, spam...

Podpis

Nie mam stóp...
Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-01-19, 16:38


lokowgw

Grafika/Sponsoring






Wiek: 34
Na forum: 6466 dni
Posty: 47
Nick w MP: lokowgw

Piwa: 122

Respekt: 50

co do 1198 mam tylko do 1196

Kod:


1190}
1191
1192public OnPlayerExitedMenu(playerid)
1193{
1194 return 1;
1195:}
1196:public


[ Dodano: 2009-01-19, 16:40 ]
a co do C:\Documents and Settings\loko\Pulpit\stuntek.pwn(982) : error 035: argument type mismatch (argument 2)

to kod:
Kod:

}

if(strcmp("/wieza",cmdrext ,true) == 0)
{
SetPlayerWorldBounds(playerid,200000,-200000,200000,-200000);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1544.518188,-1353.435058,329.474090);
ResetPlayerWeapons(playerid);
SendClientMessage(playerid, COLOR_GREEN,"Teleportowa?e? sie na wie?owcu w LS");
return 1;
}


Podpis
Szukasz sponsora?
Pisz na PW! Sponsoruje Serwery Gta SanAndras:MultiPlayer jak i serwery Głosowe TeamSpeak2 !
Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-01-19, 16:41


Zurrek







Wiek: 30
Na forum: 6543 dni
Posty: 312
Nick w MP: Zurrek

Piwa: 1890

Respekt: 50

Ju? Ci chyba pisa?em wy?ej -.- :
Kod:

if(strcmp("/wieza",cmdtext ,true) == 0)
{
SetPlayerWorldBounds(playerid,200000,-200000,200000,-200000);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1544.518188,-1353.435058,329.474090);
ResetPlayerWeapons(playerid);
SendClientMessage(playerid, COLOR_GREEN,"Teleportowa?e? sie na wie?owcu w LS");
return 1;
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-01-19, 16:41


TNT

Ban(playerid);






Wiek: 32
Na forum: 6788 dni
Posty: 145

Piwa: 1141

Respekt: 50

lokowgw,

a poaz linjke od 982 ..

Podpis
SupportTeam przemo.org
Postaw piwo autorowi tego posta
 

 
Wysłany: 2009-01-19, 16:47


lokowgw

Grafika/Sponsoring






Wiek: 34
Na forum: 6466 dni
Posty: 47
Nick w MP: lokowgw

Piwa: 122

Respekt: 50

"Zuru" napisał/a:

Ju? Ci chyba pisa?em wy?ej -.- :
Kod:

if(strcmp("/wieza",cmdtext ,true) == 0)
{
SetPlayerWorldBounds(playerid,200000,-200000,200000,-200000);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,1544.518188,-1353.435058,329.474090);
ResetPlayerWeapons(playerid);
SendClientMessage(playerid, COLOR_GREEN,"Teleportowa?e? sie na wie?owcu w LS");
return 1;
}



to jest 982 - 990

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