Witam. Od razu m?wi? ?e to jest moja pierwsza komenda kt?r? sam stara?em si? zmieni?. Komenda ma dzia?a? tam /nick [id gracza] [nick]
Chyba ka?dy wie o co w tym chodzi ?e admin zmienia o podanym id graczowi nick. I co? mi nie wysz?o niby nick zmienia ale jak si? wpisze /nick [nick]
to tylko zmienia Nick i pisze ?e "admin zmienil nick ID:0 na 0" i tylko zmienia si? nick. A ja chce aby dzia?a?o ?e danemu id zmienia si? nick.
A m?g? by? mi powiedzie? gdzie mam to dodaj bo nie wiem za bardzo gdzie.
I ?eby napis te? dobrze dzia?a? bo cia?a mi tak: Mam nick np. admin i wpisuje
"/nick 0 cos" to zmienic mi nick na "0" i pisze "Admin admin zmieni? nick ID:0 na admin"
[ Dodano: 2009-01-16, 11:56 ]
Stara?em si? co? zmieni? ale nadal mi si? nic uda?o i jest to samo
S?uchaj komenda dzia?a dobrze tylko ?e nie to co ja chcia?em
Ona dzia?a tylko tak "/nick [nick]" A ja chc? otrzyma? z tego tak? komend? dla admina kt?re pozwoli danemu graczowi z ID zmienic nick czyli "/nick [id] [nick]"
C:\Documents and Settings\JA\Pulpit\pawno mapy\PAWNO\Pawno naj normalniejsze\include\a_sampdb.inc(15) : warning 219: local variable "query" shadows a variable at a preceding level
C:\Documents and Settings\JA\Pulpit\pawno mapy\LV 6.0\LV.PWN(627) : error 017: undefined symbol "IsNumeric"
C:\Documents and Settings\JA\Pulpit\pawno mapy\LV 6.0\LV.PWN(655) : error 004: function "isPlayerInArea" is not implemented
C:\Documents and Settings\JA\Pulpit\pawno mapy\LV 6.0\LV.PWN(676) : error 004: function "isPlayerInArea" is not implemented
C:\Documents and Settings\JA\Pulpit\pawno mapy\LV 6.0\LV.PWN(856) : error 004: function "KickMsg" is not implemented
C:\Documents and Settings\JA\Pulpit\pawno mapy\LV 6.0\LV.PWN(900) : error 004: function "KickMsg" is not implemented
C:\Documents and Settings\JA\Pulpit\pawno mapy\LV 6.0\LV.PWN(902) : error 004: function "BanMsg" is not implemented
C:\Documents and Settings\JA\Pulpit\pawno mapy\LV 6.0\LV.PWN(930) : warning 225: unreachable code
C:\Documents and Settings\JA\Pulpit\pawno mapy\LV 6.0\LV.PWN(930) : error 029: invalid expression, assumed zero
C:\Documents and Settings\JA\Pulpit\pawno mapy\LV 6.0\LV.PWN(930) : error 004: function "OnPlayerDisconnect" is not implemented
C:\Documents and Settings\JA\Pulpit\pawno mapy\LV 6.0\LV.PWN(932) : warning 219: local variable "playername" shadows a variable at a preceding level
C:\Documents and Settings\JA\Pulpit\pawno mapy\LV 6.0\LV.PWN(967) : error 029: invalid expression, assumed zero
C:\Documents and Settings\JA\Pulpit\pawno mapy\LV 6.0\LV.PWN(967) : error 004: function "reklama" is not implemented
C:\Documents and Settings\JA\Pulpit\pawno mapy\LV 6.0\LV.PWN(975) : warning 225: unreachable code
C:\Documents and Settings\JA\Pulpit\pawno mapy\LV 6.0\LV.PWN(975) : error 029: invalid expression, assumed zero
C:\Documents and Settings\JA\Pulpit\pawno mapy\LV 6.0\LV.PWN(975) : error 004: function "OnPlayerCommandText" is not implemented
C:\Documents and Settings\JA\Pulpit\pawno mapy\LV 6.0\LV.PWN(982) : warning 219: local variable "idx" shadows a variable at a preceding level
C:\Documents and Settings\JA\Pulpit\pawno mapy\LV 6.0\LV.PWN(984) : error 017: undefined symbol "cmdtext"
C:\Documents and Settings\JA\Pulpit\pawno mapy\LV 6.0\LV.PWN(1157) : error 017: undefined symbol "cmdtext"
C:\Documents and Settings\JA\Pulpit\pawno mapy\LV 6.0\LV.PWN(1173) : error 017: undefined symbol "cmdtext"
C:\Documents and Settings\JA\Pulpit\pawno mapy\LV 6.0\LV.PWN(1234) : error 017: undefined symbol "cmdtext"
C:\Documents and Settings\JA\Pulpit\pawno mapy\LV 6.0\LV.PWN(1260) : warning 204: symbol is assigned a value that is never used: "vehicleid"
C:\Documents and Settings\JA\Pulpit\pawno mapy\LV 6.0\LV.PWN(1313) : error 017: undefined symbol "cmdtext"
C:\Documents and Settings\JA\Pulpit\pawno mapy\LV 6.0\LV.PWN(1328) : error 017: undefined symbol "cmdtext"
C:\Documents and Settings\JA\Pulpit\pawno mapy\LV 6.0\LV.PWN(1343) : error 017: undefined symbol "cmdtext"
C:\Documents and Settings\JA\Pulpit\pawno mapy\LV 6.0\LV.PWN(1358) : error 017: undefined symbol "cmdtext"
C:\Documents and Settings\JA\Pulpit\pawno mapy\LV 6.0\LV.PWN(1373) : error 017: undefined symbol "cmdtext"
C:\Documents and Settings\JA\Pulpit\pawno mapy\LV 6.0\LV.PWN(1384) : error 017: undefined symbol "cmdtext"
C:\Documents and Settings\JA\Pulpit\pawno mapy\LV 6.0\LV.PWN(1394) : error 017: undefined symbol "cmdtext"
C:\Documents and Settings\JA\Pulpit\pawno mapy\LV 6.0\LV.PWN(1410) : error 017: undefined symbol "cmdtext"
C:\Documents and Settings\JA\Pulpit\pawno mapy\LV 6.0\LV.PWN(1426) : error 017: undefined symbol "cmdtext"
C:\Documents and Settings\JA\Pulpit\pawno mapy\LV 6.0\LV.PWN(1442) : error 017: undefined symbol "cmdtext"
dobra juz naprawilem ale mam 2 problem bo tworze skrypt bazy admina i jak dodam to
if (strcmp(cmdtext, "/b-info", true)== 0 && IsPlayerAdmin(playerid)) {
SendClientMessage(playerid, COLOR_GREY," Super Admin's Base v1.0 - Info o bazie ");
SendClientMessage(playerid, COLOR_LIGHTGREEN,"____________Baza admina zawiera:_______________");
SendClientMessage(playerid, COLOR_LIGHTGREEN,"XXX- Pojazd?w");
SendClientMessage(playerid, COLOR_LIGHTGREEN,"XXX- Pickup?w ");
SendClientMessage(playerid, COLOR_LIGHTGREEN,"XXX- Obiekt?w ");
SendClientMessage(playerid, COLOR_LIGHTGREEN,"26- Komendy");
SendClientMessage(playerid, KOLOR_SZARY,"|_______Autor Super Admin's Base v1.0:_________________|");
SendClientMessage(playerid, KOLOR_SZARY,"|-----------------SHADOW[PL]---------------------------|");
SendClientMessage(playerid, KOLOR_SZARY,"|_________?ycze mi?ej zabawy z moj? baza admina________|");
SendClientMessage(playerid, KOLOR_CZERWONY,"|______________________POZDRO ALL_______________________|");
}else{
SendClientMessage(playerid, KOLOR_CZERWONY, "Super Admin's Base v1.0 : Musisz byc adminem by tego uzyc");
return 1;
}
to wtedy jak wpisze /lv to pokazuje mi sie to "Super Admin's Base v1.0 : Musisz byc adminem by tego uzyc"); ale na admina nie jestem zalogowany ale jak powinem wpisac /lv to powinno mnie przeteleportowac a tak nie jest tylko pisze SendClientMessage(playerid, KOLOR_CZERWONY, "Super Admin's Base v1.0 : Musisz byc adminem by tego uzyc"); dlacze go dam browca za pomoc
if (strcmp(cmdtext, "/b-info", true)== 0)
{
if(IsPlayerAdmin(playerid))
{
SendClientMessage(playerid, COLOR_GREY," Super Admin's Base v1.0 - Info o bazie ");
SendClientMessage(playerid, COLOR_LIGHTGREEN,"____________Baza admina zawiera:_______________");
SendClientMessage(playerid, COLOR_LIGHTGREEN,"XXX- Pojazd?w");
SendClientMessage(playerid, COLOR_LIGHTGREEN,"XXX- Pickup?w ");
SendClientMessage(playerid, COLOR_LIGHTGREEN,"XXX- Obiekt?w ");
SendClientMessage(playerid, COLOR_LIGHTGREEN,"26- Komendy");
SendClientMessage(playerid, KOLOR_SZARY,"|_______Autor Super Admin's Base v1.0:_________________|");
SendClientMessage(playerid, KOLOR_SZARY,"|-----------------SHADOW[PL]---------------------------|");
SendClientMessage(playerid, KOLOR_SZARY,"|_________?ycze mi?ej zabawy z moj? baza admina________|");
SendClientMessage(playerid, KOLOR_CZERWONY,"|______________________POZDRO ALL_______________________|");
}else SendClientMessage(playerid, KOLOR_CZERWONY, "Super Admin's Base v1.0 : Musisz byc adminem by tego uzyc");
return 1;
}
da?e? "else" do warunku komendy i gdy nie wpiszesz tej komendy to "else" z komendy /b-info si? spe?nia?o i wyskakiwa? komunikat musisz warunek na admina da? oddzielnie gdy chcesz aby co? si? wykonywa?o gdy nie jeste? adminem
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