Wysłany: 2010-04-16, 13:24
BrendY
Stalker.
Wiek: 33 Na forum: 6491 dni Posty: 48
Piwa : 2482
Wysłany: 2010-04-18, 13:21
Krzysztof1234
Wiek: 33 Na forum: 6520 dni Posty: 4
Piwa : 53
Mam taki problem ?e w kompilatorze jest wszystko OK a jak wejd? w gre, zaloguje si? na adma i wpisuj? t? komend? to wyskakuje mi ?e z?a komena i np z innymi komendami te? tak mam zapodam przyk?ad mog? wpisa? /pogoda to mi pokazuje u?yj /pgoda ]idpogody], a jak wpisze /pogoda 25 to wyskakuje mi ?e nie ma takiej komendy pomocy ludzie co ja tu ?le zrobi?em??
Kod: if(strcmp(cmdtext, "/pogoda", true) == 0 && IsPlayerAdmin(playerid) == 1)
{
if(IsPlayerConnected(playerid))
{
new tmp[256];
new idx;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GREEN, "u?yj: /pogoda [idpogody]");
return 1;
}
new weather;
weather = strval(tmp);
if(weather < 0||weather > 45) { SendClientMessage(playerid, COLOR_GREY, " Wybierz id pogody od 1 do 45!"); return 1; }
SetWeather(weather);
SendClientMessage(playerid, COLOR_GREEN, " Pogoda zmieniona !");
}
return 1;
}
Za pomoc i rozwi?zanie leci zimne
Wysłany: 2010-04-18, 13:29
mkqueu
Wiek: 34 Na forum: 6312 dni Posty: 71
Nick w MP: x64
Piwa : 132
IsPlayerConnected, po co? Skoro wpisuje komend? znaczy, ?e jest po??czony...
Kod:
if(strcmp(cmdtext, "/pogoda", true) == 0 && IsPlayerAdmin(playerid))
{
new tmp[256];
new idx;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GREEN, "u?yj: /pogoda [idpogody]");
new weather;
weather = strval(tmp);
if(weather < 0 || weather > 45) return SendClientMessage(playerid, COLOR_GREY, " Wybierz id pogody od 1 do 45!");
SetWeather(weather);
SendClientMessage(playerid, COLOR_GREEN, " Pogoda zmieniona !");
return 1;
}
Powiedz, czy jeszcze masz jakie? warningi...
Wysłany: 2010-04-18, 13:40
Krzysztof1234
Wiek: 33 Na forum: 6520 dni Posty: 4
Piwa : 53
prosze jeszcze raz
Kod:
if(strcmp(cmdtext, "/pogoda", true) == 0 && IsPlayerAdmin(playerid))
{
new tmp[256];
new idx;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GREEN, "u?yj: /pogoda [idpogody]");
new weather;
weather = strval(tmp);
if(weather < 0 || weather > 45) return SendClientMessage(playerid, COLOR_GREY, " Wybierz id pogody od 1 do 45!");
SetWeather(weather);
SendClientMessage(playerid, COLOR_GREEN, " Pogoda zmieniona !");
return 1;
}
jak wpisze normalnie /pogoda to zmieni pogode na domy?ln? a jak wpisze np. /pogoda 2 to wyskakuje mi ?e nie ma takiej komendy i nic sie nie dzieje.
Co tam jest ?le w tym kodzie ?e komenda nie dzia?a?
Za rozwi?zanie lec?:
//Edit problem rozwi?zany
Ostatnio zmieniony przez Krzysztof1234 2010-04-19, 20:27, w całości zmieniany 1 raz
Wysłany: 2010-04-19, 18:29
Zmyslak
Wiek: 30 Na forum: 6724 dni Posty: 49
Piwa : 589
Kod: if(strcmp(cmd, "/pogoda", true) == 0 && IsPlayerAdmin(playerid))
{
new tmp[256];
new idx;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GREEN, "u?yj: /pogoda [idpogody]");
new weather;
weather = strval(tmp);
if(weather < 0 || weather > 45) return SendClientMessage(playerid, COLOR_GREY, " Wybierz id pogody od 1 do 45!");
SetWeather(weather);
SendClientMessage(playerid, COLOR_GREEN, " Pogoda zmieniona !");
return 1;
}
Wysłany: 2010-04-19, 20:06
radex16
Joey Uczeń Pawno
Wiek: 33 Na forum: 6634 dni Posty: 10
Piwa : 1506
Witam mam komende kt?ra tworzy opis m?g?by kto? mi pom?c ? potrzebuje teraz do tego aby usun?? ten opis drug? komend? . (( do GF *CMD* )) t? komende uda?o mi si? zrobi? lecz tej na usni?cie nie potrafi? prosze o pomoc
Kod: //-------------------------------[Opis]------//
if(strcmp(cmdtext, "/opis", true, 4) == 0)
{
new
Opis[128],
Text3D:OpisText;
strmid(Opis, cmdtext, 6, strlen(cmdtext));
if(strlen(Opis) == 0)
{
SendClientMessage(playerid, 0xC2A2DAAA, "Zbyt kr?tki opis!");
return 1;
}
for(new i; i < strlen(Opis); i++)
OpisText = Create3DTextLabel(Opis,0xC2A2DAAA , 10.0,40.0,50.0,50.0,0);
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
Attach3DTextLabelToPlayer(OpisText, playerid, 0.0, 0.0, 0.0);
else
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
Attach3DTextLabelToVehicle(OpisText, GetPlayerVehicleID(playerid), 0.0, 0.0, 0.0);
return 1;
}
Wysłany: 2010-04-19, 20:25
Krzysztof1234
Wiek: 33 Na forum: 6520 dni Posty: 4
Piwa : 53
Dobra problem z komendami rozwi?za?em sam poniewa? brakowa?o liniki kodu,
Kod: cmd = strtok(cmdtext, idx);
chyba sobie j? skasowa?em przypadkiem
Za starania po piwku wam ?apcie
Wysłany: 2010-04-20, 07:43
Tazz
Wiek: 29 Na forum: 6321 dni Posty: 4
Nick w MP: *_Costellacci, Tazz*
Piwa : 1637
Kod: E:\Serwer SA-MP\Gold-RP v1.3\gamemodes\RP.pwn(2333) : error 004: function "SafeGivePlayerMoney" is not implemented
E:\Serwer SA-MP\Gold-RP v1.3\gamemodes\RP.pwn(2361) : error 004: function "SafeGivePlayerMoney" is not implemented
E:\Serwer SA-MP\Gold-RP v1.3\gamemodes\RP.pwn(2667) : error 004: function "ProxDetector" is not implemented
E:\Serwer SA-MP\Gold-RP v1.3\gamemodes\RP.pwn(2687) : error 004: function "ProxDetector" is not implemented
E:\Serwer SA-MP\Gold-RP v1.3\gamemodes\RP.pwn(2707) : error 004: function "ProxDetector" is not implemented
E:\Serwer SA-MP\Gold-RP v1.3\gamemodes\RP.pwn(2727) : error 004: function "ProxDetector" is not implemented
E:\Serwer SA-MP\Gold-RP v1.3\gamemodes\RP.pwn(2747) : error 004: function "ProxDetector" is not implemented
E:\Serwer SA-MP\Gold-RP v1.3\gamemodes\RP.pwn(2767) : error 004: function "ProxDetector" is not implemented
E:\Serwer SA-MP\Gold-RP v1.3\gamemodes\RP.pwn(2787) : error 004: function "ProxDetector" is not implemented
E:\Serwer SA-MP\Gold-RP v1.3\gamemodes\RP.pwn(2807) : error 004: function "ProxDetector" is not implemented
E:\Serwer SA-MP\Gold-RP v1.3\gamemodes\RP.pwn(3194) : error 004: function "PlayerToPoint" is not implemented
E:\Serwer SA-MP\Gold-RP v1.3\gamemodes\RP.pwn(3198) : error 004: function "PlayerToPoint" is not implemented
E:\Serwer SA-MP\Gold-RP v1.3\gamemodes\RP.pwn(3210) : error 004: function "PlayerToPoint" is not implemented
E:\Serwer SA-MP\Gold-RP v1.3\gamemodes\RP.pwn(3214) : error 004: function "PlayerToPoint" is not implemented
E:\Serwer SA-MP\Gold-RP v1.3\gamemodes\RP.pwn(3218) : error 004: function "PlayerToPoint" is not implemented
E:\Serwer SA-MP\Gold-RP v1.3\gamemodes\RP.pwn(3222) : error 004: function "PlayerToPoint" is not implemented
E:\Serwer SA-MP\Gold-RP v1.3\gamemodes\RP.pwn(3226) : error 004: function "PlayerToPoint" is not implemented
E:\Serwer SA-MP\Gold-RP v1.3\gamemodes\RP.pwn(3230) : error 004: function "PlayerToPoint" is not implemented
E:\Serwer SA-MP\Gold-RP v1.3\gamemodes\RP.pwn(3234) : error 004: function "PlayerToPoint" is not implemented
E:\Serwer SA-MP\Gold-RP v1.3\gamemodes\RP.pwn(3246) : error 004: function "PlayerToPoint" is not implemented
E:\Serwer SA-MP\Gold-RP v1.3\gamemodes\RP.pwn(3250) : error 004: function "PlayerToPoint" is not implemented
E:\Serwer SA-MP\Gold-RP v1.3\gamemodes\RP.pwn(3254) : error 004: function "PlayerToPoint" is not implemented
E:\Serwer SA-MP\Gold-RP v1.3\gamemodes\RP.pwn(3258) : error 004: function "PlayerToPoint" is not implemented
E:\Serwer SA-MP\Gold-RP v1.3\gamemodes\RP.pwn(3262) : error 004: function "PlayerToPoint" is not implemented
E:\Serwer SA-MP\Gold-RP v1.3\gamemodes\RP.pwn(3266) : error 004: function "PlayerToPoint" is not implemented
E:\Serwer SA-MP\Gold-RP v1.3\gamemodes\RP.pwn(3278) : error 004: function "PlayerToPoint" is not implemented
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
WTF?
Wysłany: 2010-04-20, 08:56
SultanS
Wiek: 31 Na forum: 6793 dni Posty: 201
SPONSOR
Piwa : 2306
Tazz , IfPlayerToPoint to przesz?o??.
U?yj zamiennika: Kod:
if(IsPlayerInRangeOfPoint(playerid, zasi?g(np 10.0), xxxx.xxxx, yyyy.yyyy, zzzz.zzzz))
Wstaw go w miejscu, gdzie jest IfPlayerToPoint
A jak nie - zdefiniuj. To chyba jest to.
Kod:
stock PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
new Float:oldposx, Float:oldposy, Float:oldposz;
new Float:tempposx, Float:tempposy, Float:tempposz;
GetPlayerPos(playerid, oldposx, oldposy, oldposz);
tempposx = (oldposx -x);
tempposy = (oldposy -y);
tempposz = (oldposz -z);
if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
{
return 1;
}
return 0;
Co do prox'a - ju? zapomnia?em jego funkcji, ale bodaj?e ma podobne dzia?anie do nowej wersji PlayerToPoint.
Podpis
fajnie się trollowało.
niniejszym ogłaszam, że po przepracowaniu roku na modzie i długiego czasu wstecz odchodzę niechlubnie.
nie byłem sobą, udawałem, bo tak chciał Bóg. A Bóg nigdy się nie myli
jo.
Wysłany: 2010-04-21, 23:17
Marihuana
Żyć by umierać :)
Wiek: 31 Na forum: 6144 dni Posty: 101
Nick w MP: KoZaKo
Piwa : 547
Wiem ze to nie blad ani nic ale nie pokoi mnie to
Kod: Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Header size: 3732 bytes
Code size: 272916 bytes
Data size: 9144124 bytes
Stack/heap size: 16384 bytes; estimated max. usage=5567 cells (22268 bytes)
Total requirements: 9437156 bytes
Co to znaczy ? Ze mapa zaduzo zluzywa pamieci czy poprostu duzo wazy ?
P.S napakowalem mape komendami z AS-a
Wysłany: 2010-04-22, 07:00
xmichux
Pawner
Wiek: 31 Na forum: 6021 dni Posty: 16
Piwa : 11
To tylko informacja ?e mapka du?o wa?y, przy ka?dej byczej mapce jest to samo
Wysłany: 2010-04-22, 08:06
Marihuana
Żyć by umierać :)
Wiek: 31 Na forum: 6144 dni Posty: 101
Nick w MP: KoZaKo
Piwa : 547
Napewno ? 240 kb tylko w PWN na amx to ponad 2.4 mb Wydawalo mi sie ze to pokazuje ze mapka przez tablice zuzywa duzo pamieci ale ok bede to ignorowal
Wysłany: 2010-04-25, 15:16
szeju
Wiek: 30 Na forum: 6440 dni Posty: 65
Piwa : 327
Kod: C:\Documents and Settings\Szeju12\Pulpit\Golf.pwn(18) : fatal error 100: cannot read from file: "MidoStream"
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
18:
Kod:
Podpis
piatek.tosiewytnie.pl/i,Piatek-The-Series-s04e02,vid,34221,index.html
Wysłany: 2010-04-25, 15:32
SultanS
Wiek: 31 Na forum: 6793 dni Posty: 201
SPONSOR
Piwa : 2306
Podpis
fajnie się trollowało.
niniejszym ogłaszam, że po przepracowaniu roku na modzie i długiego czasu wstecz odchodzę niechlubnie.
nie byłem sobą, udawałem, bo tak chciał Bóg. A Bóg nigdy się nie myli
jo.
Wysłany: 2010-04-25, 15:36
szeju
Wiek: 30 Na forum: 6440 dni Posty: 65
Piwa : 327
ehh a teraz ...
Kod: C:\Documents and Settings\Szeju12\Pulpit\Golf.pwn(1099) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Szeju12\Pulpit\Golf.pwn(1099) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Szeju12\Pulpit\Golf.pwn(1101) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Szeju12\Pulpit\Golf.pwn(1101) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Szeju12\Pulpit\Golf.pwn(1100) : warning 204: symbol is assigned a value that is never used: "idx"
C:\Documents and Settings\Szeju12\Pulpit\Golf.pwn(1267) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Szeju12\Pulpit\Golf.pwn(1267) : error 033: array must be indexed (variable "cmd")
C:\Documents and Settings\Szeju12\Pulpit\Golf.pwn(1506) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Szeju12\Pulpit\Golf.pwn(1506) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Szeju12\Pulpit\Golf.pwn(1557) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Szeju12\Pulpit\Golf.pwn(1557) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Szeju12\Pulpit\Golf.pwn(1603) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Szeju12\Pulpit\Golf.pwn(1603) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Szeju12\Pulpit\Golf.pwn(1688) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Szeju12\Pulpit\Golf.pwn(1688) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Szeju12\Pulpit\Golf.pwn(1801) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Szeju12\Pulpit\Golf.pwn(1801) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Szeju12\Pulpit\Golf.pwn(1940) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Szeju12\Pulpit\Golf.pwn(1940) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Szeju12\Pulpit\Golf.pwn(2019) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Szeju12\Pulpit\Golf.pwn(2019) : error 033: array must be indexed (variable "tmp")
C:\Documents and Settings\Szeju12\Pulpit\Golf.pwn(2043) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Szeju12\Pulpit\Golf.pwn(2043) : error 033: array must be indexed (variable "dir1")
C:\Documents and Settings\Szeju12\Pulpit\Golf.pwn(2050) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Szeju12\Pulpit\Golf.pwn(2050) : error 033: array must be indexed (variable "dir1")
C:\Documents and Settings\Szeju12\Pulpit\Golf.pwn(2083) : error 017: undefined symbol "strtok"
C:\Documents and Settings\Szeju12\Pulpit\Golf.pwn(2083) : error 033: array must be indexed (variable "dir1")
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
Podpis
piatek.tosiewytnie.pl/i,Piatek-The-Series-s04e02,vid,34221,index.html
Tagi: błędy :: przy :: kompilacji :: rozwiązanie
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: