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

Wysłany: 2012-11-15, 19:53


surb4u

Surb4u






Wiek: 30
Na forum: 5034 dni
Posty: 43
Nick w MP: Surb4u

Piwa: 3

Respekt: 50

Ostrzeżeń: 100%
Witam o prosze jak komendy do /telefon i 998 i 997 i taxi u pogotowie ?? ????????

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-11-15, 21:12


ToxiC.







Wiek: 28
Na forum: 5246 dni
Posty: 3792

Piwa: 8590

Respekt: 1143,8
Respekt: 1143,8

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;
}

?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-11-15, 21:55


Combacior







Wiek: 29
Na forum: 5795 dni
Posty: 1516

Piwa: 2161

Respekt: 1060
Respekt: 1060

Ostrzeżeń: 20%
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? :x

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-11-16, 17:51


surb4u

Surb4u






Wiek: 30
Na forum: 5034 dni
Posty: 43
Nick w MP: Surb4u

Piwa: 3

Respekt: 50

Ostrzeżeń: 100%
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.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-11-16, 19:02


ToxiC.







Wiek: 28
Na forum: 5246 dni
Posty: 3792

Piwa: 8590

Respekt: 1143,8
Respekt: 1143,8

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;
}


Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-11-16, 19:03


surb4u

Surb4u






Wiek: 30
Na forum: 5034 dni
Posty: 43
Nick w MP: Surb4u

Piwa: 3

Respekt: 50

Ostrzeżeń: 100%
i co widzisz nie dzia?a /telefon ^^ czego dok?adnie!!!!

Postaw piwo autorowi tego posta
 

 
Wysłany: 2012-11-16, 20:12


ToxiC.







Wiek: 28
Na forum: 5246 dni
Posty: 3792

Piwa: 8590

Respekt: 1143,8
Respekt: 1143,8

surb4u, pisz po Angielsku to pr?dzej si? odczytamy wszyscy :)

Postaw piwo autorowi tego posta
 

 
Tagi: /telefon
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » PAWN » [INNE] /telefon 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