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

Wysłany: 2012-04-11, 17:12


visaaa







Wiek: 49
Na forum: 5170 dni
Posty: 26
Nick w MP: Jony_Lee



Respekt: 50

Kod:

if(strcmp(cmd, "/kill", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "WPISZ: /kill [id/nick]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (PlayerInfo[playerid][pAdmin] >= 2)
{
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
SendClientMessage(playerid, COLOR_GRAD2, "WPISZ: /kill [id/nick]");
return 1;
}
format(string, sizeof(string), "AdmCmd: %s zostal zabity przez Admina %s.", giveplayer, sendername);
SendClientMessageToAll(COLOR_LIGHTRED, string);
SetPlayerHealth(playerid, 0);
SetPlayerArmour(playerid, 0);
return 1;
}
}
}
else
{
format(string, sizeof(string), " %d nie jest aktywnym graczem.", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
return 1;


Ten o to kod dodaj?do mapy i gdy naciskam F5 mam b??d :
Kod:

Wyst?pi? problem z aplikacj? Pawn Compiler library i zostanie ona zamkni?ta. Przepraszamy za k?opoty.


Jak to naprawi??

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-04-11, 17:15


karol170396







Wiek: 33
Na forum: 5643 dni
Posty: 580
Nick w MP: Journey

Piwa: 1520

Respekt: -126,9

Ostrzeżeń: 100%
Kod:

if(strcmp(cmd, "/kill", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "WPISZ: /kill [id/nick]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (PlayerInfo[playerid][pAdmin] >= 2)
{
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
SendClientMessage(playerid, COLOR_GRAD2, "WPISZ: /kill [id/nick]");
return 1;
}
format(string, sizeof(string), "AdmCmd: %s zostal zabity przez Admina %s.", giveplayer, sendername);
SendClientMessageToAll(COLOR_LIGHTRED, string);
SetPlayerHealth(playerid, 0);
SetPlayerArmour(playerid, 0);
return 1;
}
}
}
else
{
format(string, sizeof(string), " %d nie jest aktywnym graczem.", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
return 1;
}


Prosz?.

Podpis
"MłoteK" napisał/a:


Zając, idź kicać gdzie indziej, może w teletubisiach się miejsca zwolnią.
"zajacp1" napisał/a:

Wiele dzieci, które mi zazdroszczą, że mi się powodzi crashują mi serwer
Królik, Ty nigdy nie dorośniesz.
Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-04-11, 17:23


visaaa







Wiek: 49
Na forum: 5170 dni
Posty: 26
Nick w MP: Jony_Lee



Respekt: 50

Dalej jest to samo.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-04-11, 17:39


karol170396







Wiek: 33
Na forum: 5643 dni
Posty: 580
Nick w MP: Journey

Piwa: 1520

Respekt: -126,9

Ostrzeżeń: 100%
To w reszcie kodu masz ?le postawione klamry zapewne.

Podpis
"MłoteK" napisał/a:


Zając, idź kicać gdzie indziej, może w teletubisiach się miejsca zwolnią.
"zajacp1" napisał/a:

Wiele dzieci, które mi zazdroszczą, że mi się powodzi crashują mi serwer
Królik, Ty nigdy nie dorośniesz.
Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-04-11, 17:46


piokur99







Wiek: 26
Na forum: 5206 dni
Posty: 51
Nick w MP: piokur9

Piwa: 12

Respekt: 37

klamry s? wszystkie !!
Kod:


if(strcmp(cmd, "/kill", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "WPISZ: /kill [id/nick]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (PlayerInfo[playerid][pAdmin] >= 2)
{
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
SendClientMessage(playerid, COLOR_GRAD2, "WPISZ: /kill [id/nick]");
return 1;
}
format(string, sizeof(string), "AdmCmd: %s zostal zabity przez Admina %s.", giveplayer, sendername);
SendClientMessageToAll(COLOR_LIGHTRED, string);
SetPlayerHealth(playerid, 0);
SetPlayerArmour(playerid, 0);
return 1;
}
}
}
else
{
format(string, sizeof(string), " %d nie jest aktywnym graczem.", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
return 1;
}


U?o?y?em kod :)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-04-11, 17:47


karol170396







Wiek: 33
Na forum: 5643 dni
Posty: 580
Nick w MP: Journey

Piwa: 1520

Respekt: -126,9

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

klamry s? wszystkie !!
Kod:


if(strcmp(cmd, "/kill", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "WPISZ: /kill [id/nick]");
return 1;
}
giveplayerid = ReturnUser(tmp);
if (PlayerInfo[playerid][pAdmin] >= 2)
{
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
SendClientMessage(playerid, COLOR_GRAD2, "WPISZ: /kill [id/nick]");
return 1;
}
format(string, sizeof(string), "AdmCmd: %s zostal zabity przez Admina %s.", giveplayer, sendername);
SendClientMessageToAll(COLOR_LIGHTRED, string);
SetPlayerHealth(playerid, 0);
SetPlayerArmour(playerid, 0);
return 1;
}
}
}
else
{
format(string, sizeof(string), " %d nie jest aktywnym graczem.", giveplayerid);
SendClientMessage(playerid, COLOR_GRAD1, string);
}
}
return 1;
}


U?o?y?em kod :)


Tutaj s?...
A bez tej komendy da si? skompilowa??

Podpis
"MłoteK" napisał/a:


Zając, idź kicać gdzie indziej, może w teletubisiach się miejsca zwolnią.
"zajacp1" napisał/a:

Wiele dzieci, które mi zazdroszczą, że mi się powodzi crashują mi serwer
Królik, Ty nigdy nie dorośniesz.
Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-04-11, 17:47


visaaa







Wiek: 49
Na forum: 5170 dni
Posty: 26
Nick w MP: Jony_Lee



Respekt: 50

Tak da si? ;c

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-04-11, 17:48


piokur99







Wiek: 26
Na forum: 5206 dni
Posty: 51
Nick w MP: piokur9

Piwa: 12

Respekt: 37

No pewnie ale nie b?dzie na serwie tej komendy :)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-04-11, 18:39


BBBay

It's a Programmer






Wiek: 28
Na forum: 5428 dni
Posty: 97
Nick w MP: xBBBay

Piwa: 340

Respekt: 45,3

W tej komendzie masz dobrze klamry.
Sprawd? ostatni public co edytowa?e?.

Podpis
Launcher + Patcher
http://gtao.pl/inne-launc...4498.htm#597948

Pomogłem? Daj :piwo:
Pomogłeś? Dam :piwo:
Postaw piwo autorowi tego posta
 

 
Tagi: komenda
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