Wysłany: 2012-12-15, 23:48
Jendrula
Wiek: 31 Na forum: 5139 dni Posty: 6
Nick w MP: John_Clemenzo
Witam postanowi?em zrobi? tak? komend? na serwer ale jest problem poniewa?
jak wpisz? /afk dobrze daje mi freeze pisz? pod nickiem AFK i na czacie ?e jestem teraz AFK ale gdy wpisz? drugi raz /afk to nie chc? mnie odmrozi? ani nic tylko ca?y czas powtarza to samo co powinno by? po wpisaniu pierwszy raz /afk
oto kod:
Kod: if(strcmp(cmd, "/afk", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_BIALY,"Jeste? Aktualnie AFK!");
TogglePlayerControllable(playerid,0);
SetPlayerChatBubble(playerid, "AFK", POMARANCZOWY_AFK, 20.0, 999999999);
}
else
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_BIALY,"Wr?ci?e? ,mo?esz dalej gra?!");
TogglePlayerControllable(playerid,1);
SetPlayerChatBubble(playerid, "", POMARANCZOWY_AFK, 20.0, 999999999);
}
}
return 1;
}
Wysłany: 2012-12-16, 11:58
ToxiC.
Wiek: 28 Na forum: 5246 dni Posty: 3792
Piwa : 8590
a mo?e troche inny sposob?
na g?rze: Kod:
OnPlayerConnect: Kod:
komenda:
Kod:
if(strcmp(cmd, "/afk", true) == 0)
{
if(!AFK[playerid])
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_BIALY,"Jeste? Aktualnie AFK!");
TogglePlayerControllable(playerid,0);
SetPlayerChatBubble(playerid, "AFK", POMARANCZOWY_AFK, 20.0, 999999999);
}
}
else if(AFK[playerid])
{
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_BIALY,"Wr?ci?e? ,mo?esz dalej gra?!");
TogglePlayerControllable(playerid,1);
SetPlayerChatBubble(playerid, "", POMARANCZOWY_AFK, 20.0, 999999999);
}
}
}
return 1;
}
Wysłany: 2012-12-16, 13:28
Jendrula
Wiek: 31 Na forum: 5139 dni Posty: 6
Nick w MP: John_Clemenzo
Nadal to samo
Wysłany: 2012-12-16, 13:42
neroPL
Wiek: 28 Na forum: 5671 dni Posty: 79
Nick w MP: Kapec
Piwa : 584
G?ra mapy :
Kod:
Connect : Kod:
Kod: if(strcmp(cmd, "/afk", true) == 0)
{
if(mafk[playerid] == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_BIALY,"Jeste? Aktualnie AFK!");
TogglePlayerControllable(playerid,0);
mafk[playerid] = 1;
SetPlayerChatBubble(playerid, "AFK", POMARANCZOWY_AFK, 20.0, 999999999);
}
}
else if(mafk[playerid] == 1)
{
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_BIALY,"Wr?ci?e? ,mo?esz dalej gra?!");
TogglePlayerControllable(playerid,1);
mafk[playerid] = 0;
SetPlayerChatBubble(playerid, "", POMARANCZOWY_AFK, 20.0, 999999999);
}
}
}
return 1;
}
i tyle
Wysłany: 2012-12-16, 14:02
Jendrula
Wiek: 31 Na forum: 5139 dni Posty: 6
Nick w MP: John_Clemenzo
Kod: G:\Chillout - Role Play v0.2.1\U-RP\ChillOut - Role Play\gamemodes\U-RP.pwn(41) : error 010: invalid function or declaration
G:\Chillout - Role Play v0.2.1\U-RP\ChillOut - Role Play\gamemodes\U-RP.pwn(2090) : error 017: undefined symbol "maffk"
G:\Chillout - Role Play v0.2.1\U-RP\ChillOut - Role Play\gamemodes\U-RP.pwn(2090) : warning 215: expression has no effect
G:\Chillout - Role Play v0.2.1\U-RP\ChillOut - Role Play\gamemodes\U-RP.pwn(2090) : error 001: expected token: ";", but found "]"
G:\Chillout - Role Play v0.2.1\U-RP\ChillOut - Role Play\gamemodes\U-RP.pwn(2090) : error 029: invalid expression, assumed zero
G:\Chillout - Role Play v0.2.1\U-RP\ChillOut - Role Play\gamemodes\U-RP.pwn(2090) : 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.
Wysłany: 2012-12-16, 15:26
mishek
Wiek: 30 Na forum: 5272 dni Posty: 33
Nick w MP: mishek
Piwa : 7
w connect:
Kod:
zamiast:
Kod:
bo na g?rze masz zdeklarowane
Kod:
Wysłany: 2012-12-16, 16:44
Jendrula
Wiek: 31 Na forum: 5139 dni Posty: 6
Nick w MP: John_Clemenzo
Dzi?ki wam bardzo ka?dy otrzyma? po piwku zimniutkim
Tagi: nie :: dziala :: poprawnie :: komenda
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: