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

Wysłany: 2011-02-12, 23:06


adrian_pl_20







Wiek: 31
Na forum: 6692 dni
Posty: 155
Nick w MP: adrian_w

Piwa: 1568

Respekt: 111
Respekt: 111

nie masz include seif_walk

Podpis
Oglądaj filmy i seriale online za darmo, bez reklam i limitów

http://maxkino.tv
Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-02-13, 13:37


lemonka







Wiek: 30
Na forum: 5734 dni
Posty: 5



Respekt: 50

Na drugim komputerze dzisiaj kompilowa?em i mi wysz?y takie errory:
C:\Users\fillllll\Desktop\Blue RP v1.7.pwn(3836) : warning 202: number of arguments does not match definition
C:\Users\fillllll\Desktop\Blue RP v1.7.pwn(3836) : warning 202: number of arguments does not match definition
C:\Users\fillllll\Desktop\Blue RP v1.7.pwn(3836) : warning 215: expression has no effect
C:\Users\fillllll\Desktop\Blue RP v1.7.pwn(3836) : warning 215: expression has no effect
C:\Users\fillllll\Desktop\Blue RP v1.7.pwn(3836) : warning 215: expression has no effect
C:\Users\fillllll\Desktop\Blue RP v1.7.pwn(3836) : warning 215: expression has no effect
C:\Users\fillllll\Desktop\Blue RP v1.7.pwn(3836) : warning 215: expression has no effect
C:\Users\fillllll\Desktop\Blue RP v1.7.pwn(3836) : warning 215: expression has no effect
C:\Users\fillllll\Desktop\Blue RP v1.7.pwn(3836) : warning 215: expression has no effect
C:\Users\fillllll\Desktop\Blue RP v1.7.pwn(3836) : error 001: expected token: ";", but found ")"
C:\Users\fillllll\Desktop\Blue RP v1.7.pwn(3836) : error 029: invalid expression, assumed zero
C:\Users\fillllll\Desktop\Blue RP v1.7.pwn(3836) : warning 215: expression has no effect
C:\Users\fillllll\Desktop\Blue RP v1.7.pwn(14817) : error 029: invalid expression, assumed zero
C:\Users\fillllll\Desktop\Blue RP v1.7.pwn(14817) : error 017: undefined symbol "nazwaserwera"
C:\Users\fillllll\Desktop\Blue RP v1.7.pwn(14817) : error 029: invalid expression, assumed zero
C:\Users\fillllll\Desktop\Blue RP v1.7.pwn(14817) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.0.3367 Copyright (c) 1997-2005, ITB CompuPhase


6 Errors.


Linijki
14817 dcmd(nazwaserwera,12,cmdtext);
3836 format(string2),(string2),"NICK: %s || GODZINA: %d.%d.%d || IP: %s \r\n",nick,g,m,s,IP) ;

[ Dodano: 2011-02-13, 14:26 ]
S?uchajcie, sam raczej tego nie skompiluje, wi?c kto by m?g? si? podj?? tego dam linka z map? na pw. Dam 3 piwa :piwo: :piwo: :piwo: :) ew wi?cej :)

[ Dodano: 2011-02-13, 17:55 ]
Dobra dam 5 piw dla tego kto mi to zrobi :)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-02-14, 13:30


adrian_pl_20







Wiek: 31
Na forum: 6692 dni
Posty: 155
Nick w MP: adrian_w

Piwa: 1568

Respekt: 111
Respekt: 111

linijka 3836 tak ma by?
Kod:

format(string2, sizeof(string2),"NICK: %s || GODZINA: %d.%d.%d || IP: %s \r\n",nick,g,m,s,IP);


a 14817 chyba tak
Kod:

dcmd("nazwaserwera",12,cmdtext);


Podpis
Oglądaj filmy i seriale online za darmo, bez reklam i limitów

http://maxkino.tv
Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-02-23, 17:14


$Jack_Black$







Wiek: 36
Na forum: 5600 dni
Posty: 3
Nick w MP: Jack_Bald



Respekt: 50

Moze wiecie z k?d pobrac taki include :/

C:\Users\U?ytkownik\Desktop\mapa.pwn(61) : fatal error 100: cannot read from file: "a_money"

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


1 Error.

Piwo ju? czeka :P :piwo:

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-02-24, 13:06


adrian_pl_20







Wiek: 31
Na forum: 6692 dni
Posty: 155
Nick w MP: adrian_w

Piwa: 1568

Respekt: 111
Respekt: 111

Podpis
Oglądaj filmy i seriale online za darmo, bez reklam i limitów

http://maxkino.tv
Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-02-26, 21:40


szeju







Wiek: 30
Na forum: 6352 dni
Posty: 65

Piwa: 327

Respekt: 45,3

siema !

mam problem z /pm


Kod:

C:\Documents and Settings\Szeju12\Pulpit\szejutruck.pwn(167) : error 017: undefined symbol "OnPlayerPrivmsg"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.



caly kod /pm

Kod:

if(strcmp("/pm", cmdtext, true) == 0)
{
tmp = strtok(cmdtext,idx);
new gMessage[256];
if(!strlen(tmp) || strlen(tmp) > 5) {
SendClientMessage(playerid,COLOR_RED,"Usage: /pm (id) (wiadomosci)");
return 1;
}

new id = strval(tmp);
gMessage = strrest(cmdtext,idx);

if(!strlen(gMessage)) {
SendClientMessage(playerid,COLOR_RED,"Usage: /pm (id) (wiadomosci)");
return 1;
}

if(!IsPlayerConnected(id)) {
SendClientMessage(playerid,COLOR_RED,"/pm : Nie ma Gracz o tym id . Spr?buj inne");
return 1;
}

if(playerid != id) {
OnPlayerPrivmsg(playerid, id, gMessage);

}
return 1;


linijka 167

Kod:

OnPlayerPrivmsg(playerid, id, gMessage);


Podpis
piatek.tosiewytnie.pl/i,Piatek-The-Series-s04e02,vid,34221,index.html
Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-02-26, 21:46


Adrian_PL







Wiek: 33
Na forum: 5705 dni
Posty: 105
Nick w MP: Noname

Piwa: 648

Respekt: 79

Niemasz Include Jakiego? albo co? zle robisz.

Podpis
Noname - PSZ24.PL
Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-02-26, 22:45


szeju







Wiek: 30
Na forum: 6352 dni
Posty: 65

Piwa: 327

Respekt: 45,3

@UP
problem z pm zalatwiony !


ale mam problem z tym kawalkiem

Kod:

new cmd[256];


cmd = strtok(cmdtext, idx);



if(strcmp(cmd, "/startvote", true) == 0 && IsPlayerAdmin(playerid)) {
if(VoteON == 1){
SendClientMessage(playerid,COLOR_RED2,"Poczekaj a? sko?czy si? aktualne g?osowanie!");
return 1;
}



tmp = strtok(cmdtext, idx);
strmid(tmp,cmdtext,10,strlen(cmdtext));
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "U?yj: /startvote [Pytanie do G?osowania]");
return 1;
}


if(strlen(cmdtext) > 60){
SendClientMessage(playerid,COLOR_WHITE,"Max. 50 znak?w w pytaniu!");
return 1;
}

Wylacz();
VoteON = 1;


for(new x=0;x<MAX_PLAYERS;x++){
if(IsPlayerConnected(x)){
Zaglosowal[x] = 0;
}
}

TextDrawShowForAll(BoxBig);
TextDrawShowForAll(BoxSmall);

TextDrawShowForAll(Glosowanie);
TextDrawShowForAll(Pytanie);

TextDrawShowForAll(Tak);
TextDrawShowForAll(Nie);

TextDrawShowForAll(Odliczanie);

LiczbaTak = 0;
LiczbaNie = 0;

Pozostalo = 30;

SetTimer("Odliczanka",1000,0);

new string[256];
format(string, sizeof(string), "~p~%s", tmp);
TextDrawSetString(Pytanie,string);


format(string, sizeof(string), "~g~/Tak~w~___%d", LiczbaTak);
TextDrawSetString(Tak,string);


format(string, sizeof(string), "~r~/Nie~w~___%d", LiczbaNie);
TextDrawSetString(Nie,string);



return 1;
}


if(strcmp(cmdtext, "/tak", true) == 0) {
if(Zaglosowal[playerid] == 1){
SendClientMessage(playerid,COLOR_RED2,"Ju? odda?e?/a? sw?j g?os!");
return 1;
}
Zaglosowal[playerid] = 1;
LiczbaTak ++;

new string[256];
format(string, sizeof(string), "~g~/Tak~w~___%d", LiczbaTak);
TextDrawSetString(Tak,string);



return 1;
}


if(strcmp(cmdtext, "/nie", true) == 0) {
if(Zaglosowal[playerid] == 1){
SendClientMessage(playerid,COLOR_RED2,"Ju? odda?e?/a? sw?j g?os!");
return 1;
}
Zaglosowal[playerid] = 1;
LiczbaNie ++;

new string[256];
format(string, sizeof(string), "~r~/Nie~w~___%d", LiczbaNie);
TextDrawSetString(Nie,string);

return 1;
}


to jest kod jak widac start vote (przepraszam autora z wstawianie czesci tego kodu)

i chodzi mi oto ze jak wpisze /sadabsd lub /123gvq lub inna nie poprawna komende to pisze mi :


Kod:

U?yj: /startvote [Pytanie do G?osowania]


prosilbym o pprawienie tego

Podpis
piatek.tosiewytnie.pl/i,Piatek-The-Series-s04e02,vid,34221,index.html
Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-02-26, 23:12


adrian_pl_20







Wiek: 31
Na forum: 6692 dni
Posty: 155
Nick w MP: adrian_w

Piwa: 1568

Respekt: 111
Respekt: 111

moze tak
Kod:

new cmd[256];


cmd = strtok(cmdtext, idx);



if(strcmp(cmd, "/startvote", true) == 0 && IsPlayerAdmin(playerid)) {
if(VoteON == 1){
SendClientMessage(playerid,COLOR_RED2,"Poczekaj a? sko?czy si? aktualne g?osowanie!");
return 1;
}



tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_WHITE, "U?yj: /startvote [Pytanie do G?osowania]");
return 1;
}
strmid(tmp,cmdtext,10,strlen(cmdtext));

if(strlen(tmp) > 60){
SendClientMessage(playerid,COLOR_WHITE,"Max. 50 znak?w w pytaniu!");
return 1;
}

Wylacz();
VoteON = 1;


for(new x=0;x<MAX_PLAYERS;x++){
if(IsPlayerConnected(x)){
Zaglosowal[x] = 0;
}
}

TextDrawShowForAll(BoxBig);
TextDrawShowForAll(BoxSmall);

TextDrawShowForAll(Glosowanie);
TextDrawShowForAll(Pytanie);

TextDrawShowForAll(Tak);
TextDrawShowForAll(Nie);

TextDrawShowForAll(Odliczanie);

LiczbaTak = 0;
LiczbaNie = 0;

Pozostalo = 30;

SetTimer("Odliczanka",1000,0);

new string[256];
format(string, sizeof(string), "~p~%s", tmp);
TextDrawSetString(Pytanie,string);


format(string, sizeof(string), "~g~/Tak~w~___%d", LiczbaTak);
TextDrawSetString(Tak,string);


format(string, sizeof(string), "~r~/Nie~w~___%d", LiczbaNie);
TextDrawSetString(Nie,string);



return 1;
}


if(strcmp(cmdtext, "/tak", true) == 0) {
if(Zaglosowal[playerid] == 1){
SendClientMessage(playerid,COLOR_RED2,"Ju? odda?e?/a? sw?j g?os!");
return 1;
}
Zaglosowal[playerid] = 1;
LiczbaTak ++;

new string[256];
format(string, sizeof(string), "~g~/Tak~w~___%d", LiczbaTak);
TextDrawSetString(Tak,string);



return 1;
}


if(strcmp(cmdtext, "/nie", true) == 0) {
if(Zaglosowal[playerid] == 1){
SendClientMessage(playerid,COLOR_RED2,"Ju? odda?e?/a? sw?j g?os!");
return 1;
}
Zaglosowal[playerid] = 1;
LiczbaNie ++;

new string[256];
format(string, sizeof(string), "~r~/Nie~w~___%d", LiczbaNie);
TextDrawSetString(Nie,string);

return 1;
}


Podpis
Oglądaj filmy i seriale online za darmo, bez reklam i limitów

http://maxkino.tv
Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-03-01, 18:08


Shaun.

Programista WWW






Wiek: 32
Na forum: 5620 dni
Posty: 79
Nick w MP: Shaun

Piwa: 97

Respekt: 55,5

Witam, zrobi?em Regulamin na serwer, doda?em go do gamemoda i
Kod:

C:\Documents and Settings\Adi\Pulpit\mapabeta1.pwn(555) : error 021: symbol already defined: "ShowPlayerDialog"
C:\Documents and Settings\Adi\Pulpit\mapabeta1.pwn(556) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.


Linijki:
Kod:

ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Regulamin", "Regulamin!\n\n1. Nie strzelaj gdy nie masz amunicji\n2. Zga? ?wiat?o, tak, ?eby by?o jasno\n3. Nie mocz si? wchodz?c do wody\n\nCzy akceptujesz regulamin?", "Tak", "Nie"); //555
return 1; //556
}


I jak to naprawi??
Mam to w
Kod:

public OnPlayerConnect(playerid)
{


Za pomoc dam :piwo: 8-)
Aha, nie patrzcie na tre?? regulaminu, mam go z poradnika na pawno .pl xD
Zmieni? se zaraz :P

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-03-02, 20:47


macbast







Wiek: 40
Na forum: 5653 dni
Posty: 3
Nick w MP: Maciek



Respekt: 50

Kod:

D:\PAWNO\HELLO.pwn(37 -- 39) : error 001: expected token: ",", but found "return"
D:\PAWNO\HELLO.pwn(39) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.


KTO? POMO?E ?? ?? ??

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-03-02, 21:50


Shaun.

Programista WWW






Wiek: 32
Na forum: 5620 dni
Posty: 79
Nick w MP: Shaun

Piwa: 97

Respekt: 55,5

macbast, mo?e podasz linijki? :O

Podpis

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-03-02, 22:21


Tylor

Chędożony Lewak






Wiek: 33
Na forum: 6218 dni
Posty: 20

Piwa: 669

Respekt: 50

Witam. Chcia?em zmodyfikowa? lekko starego dobrego Ojca no i chcia?em na jaki? czas zast?pi? "wybieralnie" na skin podczas rejestracji IN GAME.

Source Code: ** Wiem ?e jest brzydko u?o?ony ;s **

Kod:

if(RegistrationStep[playerid] > 0)
{
if(RegistrationStep[playerid] == 1)
{
new idx;
tmp = strtok(text, idx);
if((strcmp("mezczyzna", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("mezczyzna")))
{
PlayerInfo[playerid][pSex] = 1;
SendClientMessage(playerid, COLOR_YELLOW2, "Ok, wi?c jeste? p?ci m?skiej.");
SendClientMessage(playerid, COLOR_LIGHTRED, "Jaka jest Twoja data urodzin? (Format: *dd/mm/rrrr*)");
RegistrationStep[playerid] = 2;
return 0;
}
else if((strcmp("kobieta", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("kobieta")))
{
PlayerInfo[playerid][pSex] = 2;
SendClientMessage(playerid, COLOR_YELLOW2, "Ok, wi?c jeste? p?ci damskiej.");
SendClientMessage(playerid, COLOR_LIGHTRED, "Jaka jest Twoja data urodzin? (Format: *dd/mm/rrrr*)");
RegistrationStep[playerid] = 2;
return 0;
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Jeste? Mezczyzna czy Kobieta? (Wprowad? kim jeste?)");
}
return 0;
}
else if(RegistrationStep[playerid] == 2)
{
new year, month,day;
getdate(year, month, day);
new DateInfo[3][20];
split(text, DateInfo, '/');
if(year - strval(DateInfo[2]) > 100 || strval(DateInfo[2]) < 1 || strval(DateInfo[2]) >= year)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Podaj swoj? dat? urodzin (dd/mm/rrrr)");
return 0;
}
new check = year - strval(DateInfo[2]);
if(check == year)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Podaj swoj? dat? urodzin (dd/mm/rrrr)");
return 0;
}
if(strval(DateInfo[1]) > month)
{
check -= 1;
}
else if(strval(DateInfo[1]) == month && strval(DateInfo[0]) > day)
{
check -= 1;
}
PlayerInfo[playerid][pAge] = check;
format(string, sizeof(string), "Ok, wi?c masz %d lat.",PlayerInfo[playerid][pAge]);
SendClientMessage(playerid, COLOR_YELLOW2, string);
RegistrationStep[playerid] = 3;
SendClientMessage(playerid, COLOR_LIGHTRED, "Sk?d pochodzisz? (Wpisz: USA, Europa lub Azja)");
return 0;
}
else if(RegistrationStep[playerid] == 3)
{
new idx;
tmp = strtok(text, idx);
if((strcmp("usa", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("usa")))
{
PlayerInfo[playerid][pOrigin] = 1;
SendClientMessage(playerid, COLOR_YELLOW2, "Ok, wi?c jeste? z USA.");
SendClientMessage(playerid, COLOR_LIGHTRED, ">..........<");
SendClientMessage(playerid, COLOR_LIGHTRED, "Jakiej karnacji jest twoja posta? ?");
SendClientMessage(playerid, COLOR_LIGHTRED, "**Wpisz (P?e? M?skiej): czarnej; bia?ej; latino; japonskiej");
SendClientMessage(playerid, COLOR_LIGHTRED, "**Wpisz (P?e? ?e?ska): k-czarnej; k-bialej; k-latino; k-japonskiej");
RegistrationStep[playerid] = 4;
return 0;
}
else if((strcmp("europa", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("europa")))
{
PlayerInfo[playerid][pOrigin] = 2;
SendClientMessage(playerid, COLOR_YELLOW2, "Ok, wi?c jeste? z Europy.");
SendClientMessage(playerid, COLOR_LIGHTRED, ">..........<");
SendClientMessage(playerid, COLOR_LIGHTRED, "Jakiej karnacji jest twoja posta? ?");
SendClientMessage(playerid, COLOR_LIGHTRED, "**Wpisz (P?e? M?skiej): czarnej; bia?ej; latino; japonskiej");
SendClientMessage(playerid, COLOR_LIGHTRED, "**Wpisz (P?e? ?e?ska): k-czarnej; k-bialej; k-latino; k-japonskiej");
RegistrationStep[playerid] = 4;
return 0;
}
else if((strcmp("azja", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("azja")))
{
PlayerInfo[playerid][pOrigin] = 3;
SendClientMessage(playerid, COLOR_YELLOW2, "Ok, wi?c jeste? z Azji.");
SendClientMessage(playerid, COLOR_LIGHTRED, ">..........<");
SendClientMessage(playerid, COLOR_LIGHTRED, "Jakiej karnacji jest twoja posta? ?");
SendClientMessage(playerid, COLOR_LIGHTRED, "**Wpisz (P?e? M?skiej): czarnej; bialej; latino; japonskiej");
SendClientMessage(playerid, COLOR_LIGHTRED, "**Wpisz (P?e? ?e?ska): k-czarnej; k-bialej; k-latino; k-japonskiej");
RegistrationStep[playerid] = 4;
return 0;
}
else if(RegistrationStep[playerid] == 4)
{
new idx;
tmp = strtok(text, idx);
if((strcmp("czarnej", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("czarnej")))
{
PlayerInfo[playerid][pKar] = 1;
SetPlayerSkin(playerid, 21);
SendClientMessage(playerid, COLOR_YELLOW2, "Ok, wi?c jeste? osob? o karnacji Czarnej.");
SendClientMessage(playerid, COLOR_LIGHTRED, "...");
RegistrationStep[playerid] = 0;
TutTime[playerid] = 1;
return 0;
}
else if((strcmp("bialej", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("bia?ej")))
{
PlayerInfo[playerid][pKar] = 2;
SetPlayerSkin(playerid, 44);
SendClientMessage(playerid, COLOR_YELLOW2, "Ok, wi?c jeste? osob? o karnacji Bia?ej.");
SendClientMessage(playerid, COLOR_LIGHTRED, "...");
RegistrationStep[playerid] = 0;
TutTime[playerid] = 1;
return 0;
}
else if((strcmp("latino", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("latino")))
{
PlayerInfo[playerid][pKar] = 3;
SetPlayerSkin(playerid, 48);
SendClientMessage(playerid, COLOR_YELLOW2, "Ok, wi?c jeste? osob? o karnacji Latino.");
SendClientMessage(playerid, COLOR_LIGHTRED, "...");
RegistrationStep[playerid] = 0;
TutTime[playerid] = 1;
return 0;
}
else if((strcmp("japonskiej", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("japonskiej")))
{
PlayerInfo[playerid][pKar] = 4;
SetPlayerSkin(playerid, 210);
SendClientMessage(playerid, COLOR_YELLOW2, "Ok, wi?c jeste? osob? o karnacji Wschodniej..");
SendClientMessage(playerid, COLOR_LIGHTRED, "...");
RegistrationStep[playerid] = 0;
TutTime[playerid] = 1;
return 0;
}
else if((strcmp("k-japonskiej", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("k-japonskiej")))
{
PlayerInfo[playerid][pKar] = 5;
SetPlayerSkin(playerid, 169);
SendClientMessage(playerid, COLOR_YELLOW2, "Ok, wi?c jeste? osob? o karnacji Wschodniej..");
SendClientMessage(playerid, COLOR_LIGHTRED, "...");
RegistrationStep[playerid] = 0;
TutTime[playerid] = 1;
return 0;
}
else if((strcmp("k-czarnej", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("k-czarnej")))
{
PlayerInfo[playerid][pKar] = 6;
SetPlayerSkin(playerid, 13);
SendClientMessage(playerid, COLOR_YELLOW2, "Ok, wi?c jeste? osob? o karnacji Czarnej..");
SendClientMessage(playerid, COLOR_LIGHTRED, "...");
RegistrationStep[playerid] = 0;
TutTime[playerid] = 1;
return 0;
}
else if((strcmp("k-bialej", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("k-bialej")))
{
PlayerInfo[playerid][pKar] = 7;
SetPlayerSkin(playerid, 191);
SendClientMessage(playerid, COLOR_YELLOW2, "Ok, wi?c jeste? osob? o karnacji Bia?ej..");
SendClientMessage(playerid, COLOR_LIGHTRED, "...");
RegistrationStep[playerid] = 0;
TutTime[playerid] = 1;
return 0;
}
else if((strcmp("k-latino", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("k-latino")))
{
PlayerInfo[playerid][pKar] = 8;
SetPlayerSkin(playerid, 298);
SendClientMessage(playerid, COLOR_YELLOW2, "Ok, wi?c jeste? osob? o karnacji Latino..");
SendClientMessage(playerid, COLOR_LIGHTRED, "...");
RegistrationStep[playerid] = 0;
TutTime[playerid] = 1;
return 0;
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Jakiej karnacji jest twoja posta? ?");
SendClientMessage(playerid, COLOR_LIGHTRED, "**Wpisz (P?e? M?skiej): czarnej; bia?ej; latino; japonskiej");
SendClientMessage(playerid, COLOR_LIGHTRED, "**Wpisz (P?e? ?e?ska): k-czarnej; k-bialej; k-latino; k-japonskiej");
return 0;
}
return 0;
}






return 0;
}
return 0;
}



Dok?adnie chodzi mi o to:

Kod:

else if(RegistrationStep[playerid] == 4)
{
new idx;
tmp = strtok(text, idx);




Problemy:
Kod:


C:\Users\Kejn\Desktop\samp03csvr_win32\gamemodes\gf.pwn(24808) : warning 219: local variable "idx" shadows a variable at a preceding level
C:\Users\Kejn\Desktop\samp03csvr_win32\gamemodes\gf.pwn(24897) : warning 225: unreachable code



Wiem ?e ko?c?wka jest co? okropnie u?o?ona ale jak co? zmieni? chod? usun? jedn? spacj? odrazu 12 error?w ;p Za pomoc yy... rep !

Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-03-08, 17:33


chaotic66

I Love GtaOnline :D






Wiek: 28
Na forum: 5588 dni
Posty: 25
Nick w MP: Don_Corleone

Piwa: 429

Respekt: 50

Ostrzeżeń: 100%
"macbast" napisał/a:

Kod:

D:\PAWNO\HELLO.pwn(37 -- 39) : error 001: expected token: ",", but found "return"
D:\PAWNO\HELLO.pwn(39) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.


KTO? POMO?E ?? ?? ??



podaj te linijki

Podpis
HostName: !PL! Polski Server DM -Poleć znajomym !PL!
Address: 91.203.223.75:7968
Players: XX / 20
Ping: 46
Mode: •[PL][PS-DM] V 1.0•
Map: San Andreas
Strona:www.ps-dm.tk
POMOGŁEM POSTAW PIWO
ZBIERAM 100 PIW POMOŻESZ ?
Postaw piwo autorowi tego posta
 

 
Wysłany: 2011-03-08, 17:55


KoLoSs

www.pKoLoSs.tk






Wiek: 31
Na forum: 5639 dni
Posty: 109
Nick w MP: KoLoSs

Piwa: 593

Respekt: 55,1

Ostrzeżeń: 20%
chaotic66, ty se nie radzisz z najmniejszym problemem a mu pomo?esz ? ;o . .
bosh.;d.
doobra.. r?b co chcesz xd.
ale bd pierwszy ;p
macbast, daj linijki od 35 do 40 w??cznie.

Podpis
coś dla uczących się pawn! moje prace, z dnia na dzień coś nowego. !

www.pKoLoSs.tk
+ reklama w stopce strony.
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