Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: /odleglosc
1. [GF] komendy /odleglosc /pw
siema, mam problem z dwoma komendami /odleglosc i /pw kt?re ostatnio dodawalem do mapy wszystko jest okej nie ma error?w, warning?w ale jak wpisuje komende na serwerze to pisze ze nie ma takiej komendy prosze o pomoc :) bedzie reput i piwo

[code] if(!strcmp(cmd, "/pm", true) || !strcmp(cmd, "/pw", true))
{
// new string[130];
tmp = strtok(cmdtext, idx);

if(!strlen(tmp)) {
SendClientMessage(playerid, COLOR_LIGHTBLUE, "U?yj: /pm [playerid] [text]");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "U?yj: /pw [playerid] [text]");
return 1;
}
giveplayerid = strval(tmp);
tmp = strrest(cmdtext,idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "U?yj: /pm [playerid] [text]");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "U?yj: /pw [playerid] [text]");
return 1;
}
if(zablokowalpw[giveplayerid])
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "Gracz ma zablokowane PM.");
return 1;
}
if (IsPlayerConnected(giveplayerid)) {
format(string, sizeof(string), "{0099FF}Prywatna Wiadomo?? {FFFFFF}zosta?a wys?ana do %s(ID: %d).", PlayerName(giveplayerid),giveplayerid);
SendClientMessage(playerid, COLOR_WHITE, string);
format(string, sizeof(string), "{FFFFFF}Otrzyma?e? now? {0099FF}prywatn? wiadomo??{FFFFFF} od %s(ID: %d).", PlayerName(playerid), playerid);
SendClientMessage(giveplayerid, COLOR_WHITE, string);
format(string, siz...