Wysłany: 2012-11-15, 19:53
surb4u
Surb4u
Wiek: 30 Na forum: 5034 dni Posty: 43
Nick w MP: Surb4u
Piwa : 3
Witam o prosze jak komendy do /telefon i 998 i 997 i taxi u pogotowie ????????
Wysłany: 2012-11-15, 21:12
ToxiC.
Wiek: 28 Na forum: 5246 dni Posty: 3792
Piwa : 8590
Kod:
CMD:telefon(playerid, cmdtext[])
{
new tel;
if(sscanf(cmdtext,"d",tel))
{
SendClientMessage(playerid, -1, "U?yj: /Telefon [/996 - taxi/997 - policja/999 - stra?/999 - pogotowie]");
return 1;
}
if(tel == 996)
{
new string[256];
format(string, 256, "%s wzywa Taxi!", PlayerName(playerid));
SendClientMessageToAll(-1, string);
}
else if(tel == 997)
{
new string[256];
format(string, 256, "%s wzywa Policje!", PlayerName(playerid));
SendClientMessageToAll(-1, string);
}
else if(tel == 998)
{
new string[256];
format(string, 256, "%s wzywa Stra?!", PlayerName(playerid));
SendClientMessageToAll(-1, string);
}
else if(tel == 999)
{
new string[256];
format(string, 256, "%s wzywa Pogotowie!", PlayerName(playerid));
SendClientMessageToAll(-1, string);
}
else
{
SendClientMessage(playerid, -1, "Nie ma takiego numeru...");
}
return 1;
}
?
Wysłany: 2012-11-15, 21:55
Combacior
Wiek: 29 Na forum: 5796 dni Posty: 1516
Piwa : 2161
I po co robisz taki du?y rozmiar tablicy, takie co? z?era pami?? i nie laguje serwer, ale spowalnia jego dzia?anie, przez co wszystko wykonuje si? wolniej i zr?b tutaj optymaln? map?
Wysłany: 2012-11-16, 17:51
surb4u
Surb4u
Wiek: 30 Na forum: 5034 dni Posty: 43
Nick w MP: Surb4u
Piwa : 3
a dzi?ki ma dzia?a?
ale ma widzisz
C:\Users\Edser\Desktop\Server\gamemodes\tft.pwn(5933) : warning 203: symbol is never used: "telefon"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Warning.
Wysłany: 2012-11-16, 19:02
ToxiC.
Wiek: 28 Na forum: 5246 dni Posty: 3792
Piwa : 8590
surb4u , w public OnPlayerCommandText:
Kod:
if(!strcmp(cmd, "/telefon", true))
{
new tel;
if(sscanf(cmdtext,"d",tel))
{
SendClientMessage(playerid, -1, "U?yj: /Telefon [/996 - taxi/997 - policja/999 - stra?/999 - pogotowie]");
return 1;
}
if(tel == 996)
{
new string[256];
format(string, 256, "%s wzywa Taxi!", PlayerName(playerid));
SendClientMessageToAll(-1, string);
}
else if(tel == 997)
{
new string[256];
format(string, 256, "%s wzywa Policje!", PlayerName(playerid));
SendClientMessageToAll(-1, string);
}
else if(tel == 998)
{
new string[256];
format(string, 256, "%s wzywa Stra?!", PlayerName(playerid));
SendClientMessageToAll(-1, string);
}
else if(tel == 999)
{
new string[256];
format(string, 256, "%s wzywa Pogotowie!", PlayerName(playerid));
SendClientMessageToAll(-1, string);
}
else
{
SendClientMessage(playerid, -1, "Nie ma takiego numeru...");
}
return 1;
}
Wysłany: 2012-11-16, 19:03
surb4u
Surb4u
Wiek: 30 Na forum: 5034 dni Posty: 43
Nick w MP: Surb4u
Piwa : 3
i co widzisz nie dzia?a /telefon ^^ czego dok?adnie!!!!
Wysłany: 2012-11-16, 20:12
ToxiC.
Wiek: 28 Na forum: 5246 dni Posty: 3792
Piwa : 8590
surb4u , pisz po Angielsku to pr?dzej si? odczytamy wszyscy
Tagi: /telefon
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: