Wysłany: 2013-12-20, 17:06
Pikus2
Wiek: 29 Na forum: 4698 dni Posty: 244
Piwa : 5
Wysłany: 2013-12-20, 17:12
Sillence
Wiek: 26 Na forum: 5157 dni Posty: 1514
Nick w MP: Sillence
Piwa : 1517
Pikus2 , Chodzi Ci Tylko o zwyk?? zamian? zcmd na strcmp, czy te? przy okazji sscanf na strtok ?
Wysłany: 2013-12-29, 17:20
Pikus2
Wiek: 29 Na forum: 4698 dni Posty: 244
Piwa : 5
zeby nie by?o tak:
http://pastebin.com/rhDG4vCy
bo b?d? wanringi takie:
Kod: E:\Luki\GRY\Truck\gamemodes\5.pwn(3245) : error 017: undefined symbol "params"
E:\Luki\GRY\Truck\gamemodes\5.pwn(3259) : error 001: expected token: "-string end-", but found "-identifier-"
E:\Luki\GRY\Truck\gamemodes\5.pwn(3259) : warning 215: expression has no effect
E:\Luki\GRY\Truck\gamemodes\5.pwn(3259) : error 001: expected token: ";", but found "-integer value-"
E:\Luki\GRY\Truck\gamemodes\5.pwn(3259) : warning 215: expression has no effect
E:\Luki\GRY\Truck\gamemodes\5.pwn(3259) : error 001: expected token: ";", but found "-string-"
E:\Luki\GRY\Truck\gamemodes\5.pwn(3259) : 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.
Nie r?b tematu zbiorczego bo tam nikt nie pom?g? pisa?em ze 3 razy.
Wysłany: 2013-12-29, 17:37
Sillence
Wiek: 26 Na forum: 5157 dni Posty: 1514
Nick w MP: Sillence
Piwa : 1517
Pikus2 , Jak zamieniasz te komendy to dodajesz je w odpowiednim callbacku ?
Wysłany: 2013-12-29, 17:42
Pikus2
Wiek: 29 Na forum: 4698 dni Posty: 244
Piwa : 5
no wklejam to do gm`a tam gdzie mam wszystkie komendy
[ Dodano : 2013-12-29, 17:44 ]
ale z tego co wyczyta?em to brakuje tam Kod:
a to jest w zcmd przy komendach:
Kod: CMD:dajvipa(playerid, params[]){
a gdy robie z tego strcmp:
Kod: if (strcmp(cmd, "/dajvipa", true)==0) {
widzisz w zcmd jest przy komendzie zaraz params a przy strcmp nie ma
Wysłany: 2013-12-29, 17:47
Sillence
Wiek: 26 Na forum: 5157 dni Posty: 1514
Nick w MP: Sillence
Piwa : 1517
Spr?buj zamieni? params na cmd
Wysłany: 2013-12-29, 18:39
Pikus2
Wiek: 29 Na forum: 4698 dni Posty: 244
Piwa : 5
tak?
Kod: if(strcmp(cmdtext, "/dajvipa", true ) == 0 )
{
if(!CanGiveVip(playerid))
return SendClientMessage(playerid,COLOR_WHITE,"(i)Nieprawidlowa komenda");
new dni, giveid;
if(sscanf(cmd, "dd", dni, giveid))
return SendClientMessage(playerid, BIALY, "/dajvipa [dni] [id gracza]");
if(!IsPlayerConnected(giveid))
return SendClientMessage(playerid, CZERWONY, "Z?e id brak tego gracza na serwerze!");
if(GetPVarInt(giveid, "vip"))
return SendClientMessage(playerid, CZERWONY, "Ten gracz posiada ju? rang? vip!");
if(dni == 0 || dni > MAX_DNI)
return SendClientMessage(playerid, CZERWONY, "Z?a ilo?c dni, podaj warto?? od 1 do "S_MAX_DNI" lub -1 dla niesko?czonego");
new str[200];
format(str, 200, CZERWONY "Admin %s (ID:%d) mianowa? cie VIP'em\n" CZERWONY "podaj has?o dzi?ki kt?remu b?dziesz m?g? si? logowa?\nhas?o musi mie? od 4-16 znak?w\nwielko?? liter b?dzie brana pod uwag?!", PlayerName(playerid), playerid);
ShowPlayerDialog(giveid, DIALOG2, DIALOG_STYLE_PASSWORD, "Has?o Vip",str, "Ok", "Anuluj");
SetPVarInt(giveid, "VIPDNI", dni);
format(str, 128, "Wys?ano pro?b? o has?o do gracza %s(%d)", PlayerName(giveid), giveid);
SendClientMessage(playerid, ZIELONY, str);
return 1;
}
a errory s? takie :
Kod: E:\Luki\GRY\Truck\gamemodes\5.pwn(3260) : error 001: expected token: "-string end-", but found "-identifier-"
E:\Luki\GRY\Truck\gamemodes\5.pwn(3260) : warning 215: expression has no effect
E:\Luki\GRY\Truck\gamemodes\5.pwn(3260) : error 001: expected token: ";", but found "-integer value-"
E:\Luki\GRY\Truck\gamemodes\5.pwn(3260) : warning 215: expression has no effect
E:\Luki\GRY\Truck\gamemodes\5.pwn(3260) : error 001: expected token: ";", but found "-string-"
E:\Luki\GRY\Truck\gamemodes\5.pwn(3260) : 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.
Wysłany: 2013-12-29, 18:45
Sillence
Wiek: 26 Na forum: 5157 dni Posty: 1514
Nick w MP: Sillence
Piwa : 1517
Pikus2 , Kt?ra linijka to: 3260 ?
Wysłany: 2013-12-30, 15:46
Pikus2
Wiek: 29 Na forum: 4698 dni Posty: 244
Piwa : 5
Kod: format(str, 200, COLOR_ADMIN "Admin %s (ID:%d) mianowa? cie VIP'em\n" POMARANCZOWY "podaj has?o dzi?ki kt?remu b?dziesz m?g? si? logowa?\nhas?o musi mie? od 4-16 znak?w\nwielko?? liter b?dzie brana pod uwag?!", PlayerName(playerid), playerid);
Wysłany: 2013-12-30, 16:11
Quis
Wszechwiedzący
Wiek: 31 Na forum: 5146 dni Posty: 464
Nick w MP: Quis
Piwa : 1110
Zobacz tak:
Kod: format(str, 200, "Admin %s (ID:%d) mianowa? cie VIP'em\n"POMARANCZOWY"podaj has?o dzi?ki kt?remu b?dziesz m?g? si? logowa?\nhas?o musi mie? od 4-16 znak?w\nwielko?? liter b?dzie brana pod uwag?!", PlayerName(playerid), playerid);
Wysłany: 2013-12-30, 17:47
Pikus2
Wiek: 29 Na forum: 4698 dni Posty: 244
Piwa : 5
Kod: E:\Luki\GRY\Truck\gamemodes\5.pwn(3259) : error 001: expected token: "-string end-", but found "-identifier-"
E:\Luki\GRY\Truck\gamemodes\5.pwn(3259) : warning 215: expression has no effect
E:\Luki\GRY\Truck\gamemodes\5.pwn(3259) : error 001: expected token: ";", but found "-string-"
E:\Luki\GRY\Truck\gamemodes\5.pwn(3259) : warning 215: expression has no effect
E:\Luki\GRY\Truck\gamemodes\5.pwn(3259) : warning 215: expression has no effect
E:\Luki\GRY\Truck\gamemodes\5.pwn(3259) : error 001: expected token: ";", but found ")"
E:\Luki\GRY\Truck\gamemodes\5.pwn(3259) : 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.
To samo
[ Dodano : 2013-12-30, 17:51 ]
wygl?da to tak:
http://pastebin.com/tT4kZs1K
linijka
3259:
Kod: Format (str, 200, "Admin% s (ID:% d) mianowa? cie VIP'em \ n" Pomara?czowy "podaj HAS?O dzieki kt?remu bedziesz MOGL SIE logowa? \ nhas?o Musi miec od Po 4-16 znak?w \ nwielko?? litr bedzie brana pod uwag? ", playername (playerid), playerid);
Wysłany: 2013-12-31, 16:54
xqz
otaku desu!
Wiek: 32 Na forum: 6406 dni Posty: 723
Nick w MP: xqz
Piwa : 5465
Wysłany: 2014-01-01, 11:43
Pikus2
Wiek: 29 Na forum: 4698 dni Posty: 244
Piwa : 5
zapomnia?es dodac
new str[200]
ale wraz warningi
Kod: E:\Luki\GRY\Truck\gamemodes\5.pwn(3259) : error 001: expected token: "-string end-", but found "-identifier-"
E:\Luki\GRY\Truck\gamemodes\5.pwn(3259) : warning 215: expression has no effect
E:\Luki\GRY\Truck\gamemodes\5.pwn(3259) : error 001: expected token: ";", but found "-integer value-"
E:\Luki\GRY\Truck\gamemodes\5.pwn(3259) : warning 215: expression has no effect
E:\Luki\GRY\Truck\gamemodes\5.pwn(3259) : error 001: expected token: ";", but found "-string-"
E:\Luki\GRY\Truck\gamemodes\5.pwn(3259) : 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.
Wysłany: 2014-01-01, 12:23
Sillence
Wiek: 26 Na forum: 5157 dni Posty: 1514
Nick w MP: Sillence
Piwa : 1517
Pikus2 , Kod kt?ry poda? xqz jest dobry wi?c nie wiem co mo?e by? ?le
Najlepiej jak poka?esz wszystkie komendy jakie posiadasz.
[Kod wklej na pastebin.com]
Wysłany: 2014-01-01, 12:26
Quis
Wszechwiedzący
Wiek: 31 Na forum: 5146 dni Posty: 464
Nick w MP: Quis
Piwa : 1110
Poka? definicje S_OLIWKOWY, S_CZERWONY itd. bo wygl?da to podejrzanie.
Tagi: prosze :: przerobienie :: komendy
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: