Wysłany: 2013-02-02, 16:02
TerraNova
Wiek: 36 Na forum: 5118 dni Posty: 98
Nick w MP: Lonalchemik
Piwa : 797
Kod:
C:\Documents and Settings\Admin\Pulpit\V0.1(2).pwn(17738) : error 017: undefined symbol "PlayerTextDrawHide"
C:\Documents and Settings\Admin\Pulpit\V0.1(2).pwn(17742) : error 017: undefined symbol "PlayerTextDrawDestroy"
C:\Documents and Settings\Admin\Pulpit\V0.1(2).pwn(19487) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Admin\Pulpit\V0.1(2).pwn(19499) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Admin\Pulpit\V0.1(2).pwn(19500) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Admin\Pulpit\V0.1(2).pwn(25905) : error 025: function heading differs from prototype
C:\Documents and Settings\Admin\Pulpit\V0.1(2).pwn(25906) : error 021: symbol already defined: "strrest"
C:\Documents and Settings\Admin\Pulpit\V0.1(2).pwn(25913) : error 017: undefined symbol "resoult"
C:\Documents and Settings\Admin\Pulpit\V0.1(2).pwn(25913) : error 079: inconsistent return types (array & non-array)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.
a to linijki z kodem
Kod: 17731 print("GameModeExit()");
17732 SendClientMessageToAll(COLOR_RED, "SERVER: Wszystkie dane zosta?y zapisane!");
17733 SendClientMessageToAll(COLOR_GREY, "SERVER: Serwer wy??czy? si?!");
17734 for (new i = 0; i < sizeof(Licznik); i++) if (IsPlayerConnected(i))
17735 {
17736 if (showed[i])
17737 {
17738 PlayerTextDrawHide(i, Licznik[i]);
17739 showed[i] = false;
17740 }
17741
17742 PlayerTextDrawDestroy(i, Licznik[i]);
17743 }
17744
17745
17746 return 1;
17747 }
Kod: 19483 new str[256];
19484 //new tmp[256];
19485 if(IsPlayerAdmin(playerid))
19486 {
19487 tmp = strtok(cmdtext, idx, ' ');
19488
19489 if(!strlen(tmp))
19490 {
19491 SendClientMessage(playerid, 0xFFFFFFFF, "U?YJ: /banip 19492 [ID]");
19492 return 1;
19493 }
19494
19495 if(IsPlayerConnected(strval(tmp)))
19496 {
19497 idx = 0;
19498 GetPlayerIp(strval(tmp), IP, 24);
19499 IPS[0] = strval(strtok(IP, idx, '.'));
19500 IPS[1] = strval(strtok(IP, idx, '.'));
19501 format(str, 256, "banip %i.%i.*.*", IPS[0], IPS[1]);
19502 SendRconCommand(str);
19503 format(str, 256, "Zbanowa?e? IP %i.%i.*.*", IPS[0], IPS[1]);
19504 SendClientMessage(playerid, 0x33AA33AA, str);
19505 }
19506 else
19507 {
19508 SendClientMessage(playerid, 0xFF0000AA, "Ten gracz nie jest 19508pod??czony");
19509 }
19510 }
19511 else
19512 {
19513 SendClientMessage(playerid, 0xFF0000AA, "Nie jeste? adminem!");
19514 }
19515 return 1;
19516 }
Kod: 25902 #pragma unused strrest
25903 #pragma unused strtok
25904
25905 strrest(const string[], index)
25906 {
25907 new length = strlen(string),offset = index,result[256];
25908 while ((index < length) && ((index - offset) < (sizeof(result) - 1)) && string[index] > '\r'))
25909{
25910 result[index - offset] = string[index];index++;
25911 }
25912 result[index - offset] = EOS;
25913 return resoult;
25914 }
kto pomo?e zlikwidowa?em p?ki co z 26 b?ed?w na 6
Wysłany: 2013-02-02, 17:35
KoLoSs
www.pKoLoSs.tk
Wiek: 31 Na forum: 5630 dni Posty: 109
Nick w MP: KoLoSs
Piwa : 593
PlayerTextDrawHide
PlayerTextDrawDestroy
zmie? na:
TextDrawHideForPlayer
TextDrawDestroy
return resoult; zmie? na: return result;
jak ten sie b?dzie pojawia?: error 021: symbol already defined: "strrest"
tu usu? ca?? definicje strrest bo pewnie masz w includzie czy gdzie?.
Podpis
coś dla uczących się pawn! moje prace, z dnia na dzień coś nowego. !
www.pKoLoSs.tk
+ reklama w stopce strony.
Wysłany: 2013-02-02, 17:56
TerraNova
Wiek: 36 Na forum: 5118 dni Posty: 98
Nick w MP: Lonalchemik
Piwa : 797
dobra usun??em zosta?o wyeliminowa? 6 warning?w
Kod: C:\Documents and Settings\Admin\Pulpit\V0.1(2).pwn(17739) : warning 213: tag mismatch
C:\Documents and Settings\Admin\Pulpit\V0.1(2).pwn(17743) : warning 213: tag mismatch
C:\Documents and Settings\Admin\Pulpit\V0.1(2).pwn(17743) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Admin\Pulpit\V0.1(2).pwn(19488) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Admin\Pulpit\V0.1(2).pwn(19500) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Admin\Pulpit\V0.1(2).pwn(19501) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Kod: 17731 print("GameModeExit()");
17732 SendClientMessageToAll(COLOR_RED, "SERVER: Wszystkie dane zosta?y zapisane!");
17733 SendClientMessageToAll(COLOR_GREY, "SERVER: Serwer wy??czy? si?!");
17734 for (new i = 0; i < sizeof(Licznik); i++) if (IsPlayerConnected(i))
17735 {
17736 if (showed[i])
17737 {
17738 TextDrawHideForPlayer(i, Licznik[i]);
17739 showed[i] = false;
17740 }
17741
17742 TextDrawDestroy(i, Licznik[i]);
17743 }
17744
17745
17746 return 1;
17747 }
Kod:
19483 new str[256];
19484 //new tmp[256];
19485 if(IsPlayerAdmin(playerid))
19486 {
19487 tmp = strtok(cmdtext, idx, ' ');
19488
19489 if(!strlen(tmp))
19490 {
19491 SendClientMessage(playerid, 0xFFFFFFFF, "U?YJ: /banip 19492 [ID]");
19492 return 1;
19493 }
19494
19495 if(IsPlayerConnected(strval(tmp)))
19496 {
19497 idx = 0;
19498 GetPlayerIp(strval(tmp), IP, 24);
19499 IPS[0] = strval(strtok(IP, idx, '.'));
19500 IPS[1] = strval(strtok(IP, idx, '.'));
19501 format(str, 256, "banip %i.%i.*.*", IPS[0], IPS[1]);
19502 SendRconCommand(str);
19503 format(str, 256, "Zbanowa?e? IP %i.%i.*.*", IPS[0], IPS[1]);
19504 SendClientMessage(playerid, 0x33AA33AA, str);
19505 }
19506 else
19507 {
19508 SendClientMessage(playerid, 0xFF0000AA, "Ten gracz nie jest 19508pod??czony");
19509 }
19510 }
19511 else
19512 {
19513 SendClientMessage(playerid, 0xFF0000AA, "Nie jeste? adminem!");
19514 }
19515 return 1;
19516 }
[ Dodano : 2013-02-02, 21:30 ]
mapka si? kompiluje ale mam cos takiego [21:30] Script[gamemodes/V0.1(2).amx]: Run time error 19: "File or function is not found"
Tagi: kilka :: błedów
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: