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

Wysłany: 2008-03-13, 16:48


Pr0f3ssi0n4LisT







Wiek: 25
Na forum: 6846 dni
Posty: 120

Piwa: 3653

Respekt: 117,8
Respekt: 117,8

public OnPlayerCommandText(playerid, cmdtext[]) {
i na koncu pod return 1;
return 0;
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-03-13, 17:47


Diler

GtaO RLZ :)






Wiek: 30
Na forum: 6709 dni
Posty: 199

Piwa: 2579

Respekt: 49,8

Ostrzeżeń: 100%
Edytowa?em komende i mam 5 error?w HELP

Kod:

#include <a_samp>
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}

public OnFilterScriptExit()
{
return 1;
}

#else

main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}

#endif
new idx;
new giveplayerid;
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
if(strcmp(cmdtext, "/wsadz", true) == 0 && IsPlayerAdmin(playerid))
{
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, 0xFFFFFFFF, "WPISZ: /wiezienie [ID Gracza]");
return 1;
}
giveplayerid = strval(tmp);
if(!IsPlayerConnected(giveplayerid))
{
format(string, sizeof(string), "Gracz o ID %d nie jest aktywny.", giveplayerid);
SendClientMessage(playerid, 0xFFFFFFFF, string);
return 1;
}
GetPlayerName(giveplayerid, ktos, sizeof(ktos));
GetPlayerName(playerid, ty, sizeof(ty));

SetPlayerInterior(playerid,3);
SetPlayerPos(playerid, 189.0410,179.4513,1003.0234);
ResetPlayerWeapons(playerid);

format(string, sizeof(string), "Admin %s (ID: %d) wsadzi? ci? do pud?a!", ty,playerid);
SendClientMessage(giveplayerid, 0xFFFFFFFF, string);

format(string, sizeof(string), "Wsadzi?e? %s (ID: %d) do wi?zienia", ktos,giveplayerid);
SendClientMessage(playerid, 0xFFFFFFFF, string);
return 1;
}
strtok(const string[], &index,seperator=' ')
{
new length = strlen(string);
new offset = index;
new result[MAX_STRING];
while ((index < length) && (string[index] != seperator) && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}

result[index - offset] = EOS;
if ((index < length) && (string[index] == seperator))
{
index++;
}
return result;
}


A oto errory

Kod:

C:\DOCUME~1\x\Pulpit\GTA\wsadz.pwn(43) : error 033: array must be indexed (variable "tmp")
C:\DOCUME~1\x\Pulpit\GTA\wsadz.pwn(52) : error 017: undefined symbol "string"
C:\DOCUME~1\x\Pulpit\GTA\wsadz.pwn(52) : error 017: undefined symbol "string"
C:\DOCUME~1\x\Pulpit\GTA\wsadz.pwn(52) : error 029: invalid expression, assumed zero
C:\DOCUME~1\x\Pulpit\GTA\wsadz.pwn(52) : fatal error 107: too many error messages on one line

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


5 Errors.


HELP

Ostatnio zmieniony przez Tomko 2008-03-14, 14:09, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-03-13, 18:32


Shaun

Młodszy Programer






Wiek: 32
Na forum: 6894 dni
Posty: 463
Nick w MP: Shaun

Piwa: 1786

Respekt: 96

Dodaj:
Kod:

new string[256];


Podpis
,
pomogłem ci ?? Wystarczy jak podziękujesz ;)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-03-14, 13:11


Diler

GtaO RLZ :)






Wiek: 30
Na forum: 6709 dni
Posty: 199

Piwa: 2579

Respekt: 49,8

Ostrzeżeń: 100%
Ej i tak mam 2 b??dy i 2 warningi HELP
KOMENDA

Kod:

#define string;
#include <a_samp>
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#if defined FILTERSCRIPT
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}

public OnFilterScriptExit()
{
return 1;
}

#else

main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}

#endif
new idx;
new giveplayerid;
new string[256];
new ktos[MAX_PLAYER_NAME];
new ty[MAX_PLAYER_NAME];
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
if(strcmp(cmdtext, "/wsadz", true) == 0 && IsPlayerAdmin(playerid))
{
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, 0xFFFFFFFF, "WPISZ: /wsadz [ID Gracza]");
return 1;
}
giveplayerid = strval(tmp);
if(!IsPlayerConnected(giveplayerid))
{
format(string, sizeof(string), "Gracz o ID %d nie jest aktywny.", giveplayerid);
SendClientMessage(playerid, 0xFFFFFFFF, string);
return 1;
}
GetPlayerName(giveplayerid, ktos, sizeof(ktos));
GetPlayerName(playerid, ty, sizeof(ty));

SetPlayerInterior(playerid,3);
SetPlayerPos(playerid, 189.0410,179.4513,1003.0234);
ResetPlayerWeapons(playerid);

format(string, sizeof(string), "Admin %s (ID: %d) wsadzi? ci? do pud?a!", ty,playerid);
SendClientMessage(giveplayerid, 0xFFFFFFFF, string);

format(string, sizeof(string), "Wsadzi?e? %s (ID: %d) do wi?zienia", ktos,giveplayerid);
SendClientMessage(playerid, 0xFFFFFFFF, string);
return 1;
}


a oto errory

Kod:

C:\DOCUME~1\x\Pulpit\GTA\wsadz.pwn(47) : error 017: undefined symbol "strtok"
C:\DOCUME~1\x\Pulpit\GTA\wsadz.pwn(47) : error 033: array must be indexed (variable "tmp")
C:\DOCUME~1\x\Pulpit\GTA\wsadz.pwn(75) : warning 209: function "OnPlayerCommandText" should return a value
C:\DOCUME~1\x\Pulpit\GTA\wsadz.pwn(75) : warning 203: symbol is never used: "idx"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.


[ Komentarz dodany przez: Tomko: 2008-03-14, 14:07 ]
Cop, wejd? w Profil --> Zawsze w??czaj BBCode: --> i zaznacz Tak
bo ju? Mi sie nudzi poprawianie ka?dego twojego postu.. :x


Ostatnio zmieniony przez Tomko 2008-03-14, 14:03, w całości zmieniany 2 razy  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-03-14, 14:04


Cihan123







Wiek: 33
Na forum: 6688 dni
Posty: 3

Piwa: 729

Respekt: 50

Kod:

C:\Documents and Settings\Cihan\Desktop\Mapy Do SAMP\gf.pwn(1138) : error 052: multi-dimensional arrays must be fully initialized
C:\Documents and Settings\Cihan\Desktop\Mapy Do SAMP\gf.pwn(10304) : warning 225: unreachable code
C:\Documents and Settings\Cihan\Desktop\Mapy Do SAMP\gf.pwn(14776) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Cihan\Desktop\Mapy Do SAMP\gf.pwn(14777) : warning 225: unreachable code
C:\Documents and Settings\Cihan\Desktop\Mapy Do SAMP\gf.pwn(25462) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Cihan\Desktop\Mapy Do SAMP\gf.pwn(25462) : warning 215: expression has no effect
C:\Documents and Settings\Cihan\Desktop\Mapy Do SAMP\gf.pwn(25462) : error 001: expected token: ";", but found "if"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.


Ja mam taki b??d !! Nie wiem co on oznacza :( Prosz? o pomoc ;(
ZA POMOC P?ACE :piwo:

Ostatnio zmieniony przez Tomko 2008-03-14, 14:07, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-03-14, 14:09


arek1995

aka Artexx






Wiek: 30
Na forum: 6913 dni
Posty: 63
Nick w MP: Artexx

Piwa: 241

Respekt: 50

Ostrzeżeń: 40%
mam problem z modem gdy wpisuje /help to zamiast pomocy wyskakuje mi komenda /admins czemu tak jest ?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-03-14, 14:16


Szwed

;)






Wiek: 31
Na forum: 6998 dni
Posty: 67

Piwa: 295

Respekt: 50

jakim modem ?

Podpis
Komputer - 2000zł, Podręcznik hakerski - 20zł, widok zepsutego gta**te - bezcenne :)




Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-03-14, 14:17


arek1995

aka Artexx






Wiek: 30
Na forum: 6913 dni
Posty: 63
Nick w MP: Artexx

Piwa: 241

Respekt: 50

Ostrzeżeń: 40%
kt?ry robie jest to mapa

Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-03-14, 22:02


darjoo







Wiek: 41
Na forum: 6666 dni
Posty: 8

Piwa: 2

Respekt: 50

przy zapisywaniu pliku .pwn na .amx pojawia mi sie okno z napisem "unable to execute complier..." prosz? o pomoc
:piwo: stawiam :piwo:

Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-03-14, 22:04


Shaun

Młodszy Programer






Wiek: 32
Na forum: 6894 dni
Posty: 463
Nick w MP: Shaun

Piwa: 1786

Respekt: 96

Podpis
,
pomogłem ci ?? Wystarczy jak podziękujesz ;)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-03-15, 11:13


arek1995

aka Artexx






Wiek: 30
Na forum: 6913 dni
Posty: 63
Nick w MP: Artexx

Piwa: 241

Respekt: 50

Ostrzeżeń: 40%
ko mi odpowie na pytanie wpisuje komende /help to wyskakuje inna a jak wpisz np /zw to to samo sie pokazuje jak bym wpisa? /help

Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-03-15, 19:09


Cihan123







Wiek: 33
Na forum: 6688 dni
Posty: 3

Piwa: 729

Respekt: 50

C:\Documents and Settings\Cihan\Desktop\pawno\gf.pwn(1848) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Cihan\Desktop\pawno\gf.pwn(1852) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Cihan\Desktop\pawno\gf.pwn(1864) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Cihan\Desktop\pawno\gf.pwn(1868) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Cihan\Desktop\pawno\gf.pwn(1872) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Cihan\Desktop\pawno\gf.pwn(1876) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Cihan\Desktop\pawno\gf.pwn(1880) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Cihan\Desktop\pawno\gf.pwn(1884) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Cihan\Desktop\pawno\gf.pwn(1888) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Cihan\Desktop\pawno\gf.pwn(1900) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Cihan\Desktop\pawno\gf.pwn(1904) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Cihan\Desktop\pawno\gf.pwn(1908) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Cihan\Desktop\pawno\gf.pwn(1912) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Cihan\Desktop\pawno\gf.pwn(1916) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Cihan\Desktop\pawno\gf.pwn(1928) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Cihan\Desktop\pawno\gf.pwn(1932) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Cihan\Desktop\pawno\gf.pwn(1936) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Cihan\Desktop\pawno\gf.pwn(1948) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Cihan\Desktop\pawno\gf.pwn(1952) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Cihan\Desktop\pawno\gf.pwn(3977) : error 004: function "CrimInRange" is not implemented
C:\Documents and Settings\Cihan\Desktop\pawno\gf.pwn(4202) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Cihan\Desktop\pawno\gf.pwn(4875) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Cihan\Desktop\pawno\gf.pwn(4952) : error 004: function "ProxDetector" is not implemented
C:\Documents and Settings\Cihan\Desktop\pawno\gf.pwn(5639) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Cihan\Desktop\pawno\gf.pwn(5645) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\Cihan\Desktop\pawno\gf.pwn(5651) : error 004: function "PlayerToPoint" is not implemented

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


26 Errors.





Mam problem !! Mo?e mi kto? powiedzie? co oznacza ten b??d ??

DAM ZA POMOC NAWET :piwo: :piwo: :piwo: :piwo: :piwo: :piwo: :piwo: :piwo: :piwo: :piwo:

Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-03-15, 19:13


Shaun

Młodszy Programer






Wiek: 32
Na forum: 6894 dni
Posty: 463
Nick w MP: Shaun

Piwa: 1786

Respekt: 96

Ten a raczej to, ?e masz 26 error?w oznacz, ?e gdzie? zapomnia?e? da? klamry, przejrzyj co ostatnio dodawa?e?...

Podpis
,
pomogłem ci ?? Wystarczy jak podziękujesz ;)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-03-15, 22:29


Silent







Wiek: 33
Na forum: 6738 dni
Posty: 9
Nick w MP: Silent

Piwa: 158

Respekt: 50

Elo mam taki warrning

Kod:

C:\Documents and Settings\Szymon\Pulpit\lvdm.pwn(359) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Szymon\Pulpit\lvdm.pwn(360) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


2 Warnings.


a o to linijki:

Kod:

public OnGameModeInit()
{
CreatePickup(1239, 1, 2495.2576,-1689.6460,14.5609,180.7034);
CreatePickup(1239, 1, 2829.0684,-90.3355,27.7870,177.5658);


Postaw piwo autorowi tego posta
 

 
Wysłany: 2008-03-16, 03:09


Pr0f3ssi0n4LisT







Wiek: 25
Na forum: 6846 dni
Posty: 120

Piwa: 3653

Respekt: 117,8
Respekt: 117,8

Kod:

CreatePickup(1239, 1, 2495.2576,-1689.6460,14.5609);
CreatePickup(1239, 1, 2829.0684,-90.3355,27.7870);

CreatePickup(ID_pickupa, TYP_PODNOSZENIA, X, Y, Z);

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