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

Wysłany: 2012-05-07, 10:30


EminemxD

DMX






Wiek: 30
Na forum: 5529 dni
Posty: 84
Nick w MP: Domix

Piwa: 640

Respekt: 48,6

Wszystko fajnie Trust wklei? eventy, ale przesta?y dzia?a? takie komendy jak: ban i gang by tak kto? umia? naprawi? te komendy w tej mapie by?o by fajnie

Link do tej mapy:

http://www.sendspace.com/file/0h9axx

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-05-07, 17:52


Seboo







Wiek: 30
Na forum: 5515 dni
Posty: 124
Nick w MP: Sebo

Piwa: 1228

Respekt: 102
Respekt: 102

Spr?buj tej komendy na bana.

CMD:ban(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return 1;
new PID, Reason[128];
sscanf(params, "ds", PID, Reason);
if(IsPlayerConnected(PID))
{
format(string, 256, "Gracz %s zosta? zbanowany przez %s. Pow?d: %s.", PlayerName(PID), PlayerName(playerid), Reason);
SendClientMessageToAll(COLOR_RED, string);
Ban(PID, Reason);
}
return 1;
}

Je?li komendy s? w strcmp, napisz w temacie to Ci przerobie. ;)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-05-07, 23:00


EminemxD

DMX






Wiek: 30
Na forum: 5529 dni
Posty: 84
Nick w MP: Domix

Piwa: 640

Respekt: 48,6

"Seboo" napisał/a:

Spr?buj tej komendy na bana.

CMD:ban(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return 1;
new PID, Reason[128];
sscanf(params, "ds", PID, Reason);
if(IsPlayerConnected(PID))
{
format(string, 256, "Gracz %s zosta? zbanowany przez %s. Pow?d: %s.", PlayerName(PID), PlayerName(playerid), Reason);
SendClientMessageToAll(COLOR_RED, string);
Ban(PID, Reason);
}
return 1;
}

Je?li komendy s? w strcmp, napisz w temacie to Ci przerobie. ;)


niestety s? 2 errorki :(

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-05-07, 23:07


Seboo







Wiek: 30
Na forum: 5515 dni
Posty: 124
Nick w MP: Sebo

Piwa: 1228

Respekt: 102
Respekt: 102

Poka?. ;)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-05-07, 23:29


EminemxD

DMX






Wiek: 30
Na forum: 5529 dni
Posty: 84
Nick w MP: Domix

Piwa: 640

Respekt: 48,6

C:\Users\Domix\Desktop\skryptypwn\pawno\PTBS.pwn(13431) : error 017: undefined symbol "string"
C:\Users\Domix\Desktop\skryptypwn\pawno\PTBS.pwn(13432) : error 017: undefined symbol "string"
C:\Users\Domix\Desktop\skryptypwn\pawno\PTBS.pwn(13433) : warning 202: number of arguments does not match definition
C:\Users\Domix\Desktop\skryptypwn\pawno\PTBS.pwn(14975) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-05-08, 11:35


Seboo







Wiek: 30
Na forum: 5515 dni
Posty: 124
Nick w MP: Sebo

Piwa: 1228

Respekt: 102
Respekt: 102

Kod:

CMD:ban(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return 1;
new PID, Reason[128];
new string[256];
sscanf(params, ds, PID, Reason);
if(IsPlayerConnected(PID))
{
format(string, 256, Gracz %s zosta? zbanowany przez %s. Pow?d: %s., PlayerName(PID), PlayerName(playerid), Reason);
SendClientMessageToAll(COLOR_RED, string);
Ban(PID, Reason);
}
return 1;
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-05-08, 13:53


EminemxD

DMX






Wiek: 30
Na forum: 5529 dni
Posty: 84
Nick w MP: Domix

Piwa: 640

Respekt: 48,6

C:\Users\Domix\Desktop\skryptypwn\pawno\PTBS.pwn(13429) : error 017: undefined symbol "ds"
C:\Users\Domix\Desktop\skryptypwn\pawno\PTBS.pwn(13432) : error 017: undefined symbol "Gracz"
C:\Users\Domix\Desktop\skryptypwn\pawno\PTBS.pwn(13432) : error 017: undefined symbol "zosta"
C:\Users\Domix\Desktop\skryptypwn\pawno\PTBS.pwn(13432) : error 029: invalid expression, assumed zero
C:\Users\Domix\Desktop\skryptypwn\pawno\PTBS.pwn(13432) : 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.

teraz to jeszcze gorzej xD

Poda?em link do tej mapy we? mi to w tej mapie zr?b :P

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-05-08, 16:46


ToxiC.







Wiek: 28
Na forum: 5246 dni
Posty: 3792

Piwa: 8590

Respekt: 1143,8
Respekt: 1143,8

Prosz?:

Kod:


CMD:ban(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return 1;
new PID, Reason[128];
new string[256];
sscanf(params, ds, PID, Reason);
if(IsPlayerConnected(PID))
{
format(string, 256, "Gracz %s zosta? zbanowany przez %s. Pow?d: %s.", PlayerName(PID), PlayerName(playerid), Reason);
SendClientMessageToAll(COLOR_RED, string);
Ban(PID, Reason);
}
return 1;
}


[ Dodano: 2012-05-08, 16:47 ]
poprawka:

Kod:



CMD:ban(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return 1;
new PID, Reason[128];
new string[256];
new ds;
sscanf(params, ds, PID, Reason);
if(IsPlayerConnected(PID))
{
format(string, 256, "Gracz %s zosta? zbanowany przez %s. Pow?d: %s.", PlayerName(PID), PlayerName(playerid), Reason);
SendClientMessageToAll(COLOR_RED, string);
Ban(PID, Reason);
}
return 1;
}



Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-05-11, 20:58


EminemxD

DMX






Wiek: 30
Na forum: 5529 dni
Posty: 84
Nick w MP: Domix

Piwa: 640

Respekt: 48,6

C:\Users\Domix\Desktop\skryptypwn\pawno\PTBS.pwn(13438) : error 035: argument type mismatch (argument 2)
C:\Users\Domix\Desktop\skryptypwn\pawno\PTBS.pwn(13441) : error 017: undefined symbol "PlayerName"
C:\Users\Domix\Desktop\skryptypwn\pawno\PTBS.pwn(13443) : warning 202: number of arguments does not match definition
C:\Users\Domix\Desktop\skryptypwn\pawno\PTBS.pwn(13437) : warning 203: symbol is never used: "ds"
C:\Users\Domix\Desktop\skryptypwn\pawno\PTBS.pwn(14985) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.

M?wi?em tu macie link do tej mapy PP z eventami fulldm prosz? ?eby?cie mi t? komende ban zrobili

http://www.sendspace.com/file/0h9axx

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-05-11, 21:00


ToxiC.







Wiek: 28
Na forum: 5246 dni
Posty: 3792

Piwa: 8590

Respekt: 1143,8
Respekt: 1143,8

Kod:

CMD:ban(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return 1;
new PID, Reason[128];
new string[256];
sscanf(params, ds, PID, Reason);
if(IsPlayerConnected(PID))
{
format(string, 256, "Gracz %s zosta? zbanowany przez %s. Pow?d: %s.", PlayerName(PID), PlayerName(playerid), Reason);
SendClientMessageToAll(-1, string);
Ban(PID);
}
return 1;
}


i dodaj definicje PlayerName, tam gdzie masz jakie? stocki, najlepiej przed komendami!
Kod:


stock PlayerName(playerid)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,sizeof(name));
return name;
}



Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-05-11, 21:31


EminemxD

DMX






Wiek: 30
Na forum: 5529 dni
Posty: 84
Nick w MP: Domix

Piwa: 640

Respekt: 48,6

C:\Users\Domix\Desktop\skryptypwn\pawno\PTBS.pwn(13439) : error 017: undefined symbol "ds"
C:\Users\Domix\Desktop\skryptypwn\pawno\PTBS.pwn(14985) : warning 219: local variable "PlayerName" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

ju? tylko jeden error co dalej ?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-05-11, 21:59


ToxiC.







Wiek: 28
Na forum: 5246 dni
Posty: 3792

Piwa: 8590

Respekt: 1143,8
Respekt: 1143,8

Kod:



CMD:ban(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return 1;
new PID, Reason[128];
new string[256];
sscanf(params, "ds", PID, Reason);
if(IsPlayerConnected(PID))
{
format(string, 256, "Gracz %s zosta? zbanowany przez %s. Pow?d: %s.", PlayerName(PID), PlayerName(playerid), Reason);
SendClientMessageToAll(-1, string);
Ban(PID);
}
return 1;
}



spr?buj tak i podaj linijk? 14985

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-05-11, 22:29


EminemxD

DMX






Wiek: 30
Na forum: 5529 dni
Posty: 84
Nick w MP: Domix

Piwa: 640

Respekt: 48,6

linijka 14985:

new PlayerName[255], Reason[255], idx;

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-05-11, 22:54


ToxiC.







Wiek: 28
Na forum: 5246 dni
Posty: 3792

Piwa: 8590

Respekt: 1143,8
Respekt: 1143,8

new Reason[255], idx;

daj tak i powinno by? Git :P

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-05-12, 13:32


EminemxD

DMX






Wiek: 30
Na forum: 5529 dni
Posty: 84
Nick w MP: Domix

Piwa: 640

Respekt: 48,6

wszystko fajnie mapa sie komplikuje no i wrzuci?em na serwa i po wpisaniu komendy zbanowa?o mnie samego ?eby chocia? dzia?a?o /ban id to by by?o fajnie ale niestety banuje ka?dego kto u?yje tej komendy :(



Postaw piwo autorowi tego posta
 

 
Tagi: komenda :: ban :: nie :: działa :: mapie :: eventami :: fulldm
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » PAWN 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