[POMOC] (/o)oc komanda.

14. Maj 2012. Zaključano
622
pregleda
10
postova
KrUnOmAn?!
4
Enforcer
14. Maj 2012.
Skripta koju koristim: GF
Detaljan opis problema: Ovako nisam siguran dal je to bug, ali nezz kako ovo popravit, znaci idem pisat /o blabla i on mi kaze nisi ulogiran a evo koda ispod
Dio skripte:
//-----------------------------------------{ooc}------------------------------
if(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        if (PlayerInfo > 1)
        {
            SendClientMessage(playerid, COLOR_GREY, "{FF9100}(Odbijeno){c3c3c3} Niste ulogirani");
            return 1;
        }
if (PlayerInfo > 1)
{
SendClientMessage(playerid, COLOR_GRAD2, "{FF9100}(Odbijeno){c3c3c3} OOC Kanal su iskljucili Admini!");
return 1;
}
if(PlayerInfo == 1)
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, "{FF9100}(Odbijeno){c3c3c3} Nemozete pricati jer ste utisani!");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext <= ' '))
{
idx++;
}
new offset = idx;
new result;
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext;
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "{FF9100}Koristite:{c3c3c3} (/o)oc [ooc chat]");
return 1;
}
format(string, sizeof(string), "(( Admin %s: %s )) ", sendername, result);
OOCOff(COLOR_OOC,string);
printf("%s", string);
}
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):Nazalost nemam.
Non-Stop Samper
5
Underboss
14. Maj 2012.
Pa da piše nisi ulogovan jer nisi admin level 1.
KrUnOmAn?!
4
Enforcer
14. Maj 2012.
😕 ?
Non-Stop Samper
5
Underboss
14. Maj 2012.
(EG)KrunsY.ini wrote on May 14, 2012, 6:28 pm:
😕 ?


Šta sad?Moraš biti ulogovan(spawnan) i moraš biti Admin lvl 1 da bi mogao koristiti ovu komandu.
Tarik (Krdzalic)
3
Hustler
14. Maj 2012.
evo buraz, probaj ovo :
if(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        if(gPlayerLogged == 0)
        {
            SendClientMessage(playerid, COLOR_GREY, " Niste se prijavili !");
            return 1;
        }
if ((noooc) && PlayerInfo < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, " OOC je ugasen od strane Admina !");
return 1;
}
if(PlayerInfo == 1)
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, " Ne mozete pricati, oduzeto vam je pravo govora !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext <= ' '))
{
idx++;
}
new offset = idx;
new result;
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext;
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: (/o)oc [ooc chat]");
return 1;
}
format(string, sizeof(string), "(( %s: %s )) " , sendername, result);
OOCOff(COLOR_OOC,string);
printf("%s", string)
}
return 1;
}
KrUnOmAn?!
4
Enforcer
14. Maj 2012.
@ tarik
format(string, sizeof(string), "(( Admin %s: %s )) " , sendername, result);
OOCOff(COLOR_OOC,string);
printf("%s", string)
12668          }
return 1;
}

C:\Users\Ivana\Downloads\GothFahterJohnny\GothFahterJohnny\GothFahterJohnny\gamemodes\GodFather.pwn(12668) : error 001: expected token: ";", but found "}"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

1 Error.
Deleted User
Obrisan korisnik
14. Maj 2012.
Tarik (Krdzalic) wrote on May 14, 2012, 6:34 pm:
evo buraz, probaj ovo :
if(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        if(gPlayerLogged == 0)
        {
            SendClientMessage(playerid, COLOR_GREY, " Niste se prijavili !");
            return 1;
        }
if ((noooc) && PlayerInfo < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, " OOC je ugasen od strane Admina !");
return 1;
}
if(PlayerInfo == 1)
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, " Ne mozete pricati, oduzeto vam je pravo govora !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext <= ' '))
{
idx++;
}
new offset = idx;
new result;
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext;
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: (/o)oc [ooc chat]");
return 1;
}
format(string, sizeof(string), "(( %s: %s )) " , sendername, result);
OOCOff(COLOR_OOC,string);
printf("%s", string)
}
return 1;
}

koda njemu nije bilo tesko kopirat iz drugo gmoda
eo ti ovo tvoje pa probaj
if(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        if(gPlayerLogged == 0)
        {
            SendClientMessage(playerid, COLOR_GREY, "{FF9100}(Odbijeno){c3c3c3} Niste ulogirani");
            return 1;
        }
if ((noooc) && PlayerInfo < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, "{FF9100}(Odbijeno){c3c3c3} OOC Kanal su iskljucili Admini!");
return 1;
}
if(PlayerInfo == 1)
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, "{FF9100}(Odbijeno){c3c3c3} Nemozete pricati jer ste utisani!");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext <= ' '))
{
idx++;
}
new offset = idx;
new result;
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext;
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "{FF9100}Koristite:{c3c3c3} (/o)oc [ooc chat]");
return 1;
}
format(string, sizeof(string), "(( %s: %s )) " , sendername, result);
OOCOff(COLOR_OOC,string);
printf("%s", string)
}
return 1;
}


ako ni to ne pomogne onda ovo
ovo ti je i za paljenje i gasenje ooc-a jer je to potrebno
	if(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        if(gPlayerLogged == 0)
        {
            SendClientMessage(playerid, COLOR_GREY, "  Niste se prijavili !");
            return 1;
        }
if ((noooc) && PlayerInfo < 1)
{
SendClientMessage(playerid, COLOR_GRAD2, "  OOC je ugasen od strane Admina !");
return 1;
}
if(PlayerInfo == 1)
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, "  Ne mozete pricati, oduzeto vam je pravo govora !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext <= ' '))
{
idx++;
}
new offset = idx;
new result;
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext;
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, ": (/o)oc [ooc chat]");
return 1;
}
format(string, sizeof(string), " %s: %s " , sendername, result);
OOCOff(COLOR_OOC,string);
printf("%s", string);
}
return 1;
}
if(strcmp(cmd, "/noooc", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
if (PlayerInfo >= 2 && (!noooc))
{
noooc = 1;
BroadCast(COLOR_GRAD2, "  OOC je ugasen od strane Admina !");
}
else if (PlayerInfo >= 2 && (noooc))
{
noooc = 0;
BroadCast(COLOR_GRAD2, "  OOC je upaljen od strane Admina !");
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "  Niste ovlasteni da koristite tu komandu!");
}
}
return 1;
}
KrUnOmAn?!
4
Enforcer
14. Maj 2012.
Satake 😘
EDIT: Jaooo sad to popravio ala mi izbacuje ove erore grrrrrrrrrrrrr
C:\Users\CyberLiquid\Downloads\GF\GothFahterJohnny\gamemodes\GodFather.pwn(3313) : error 017: undefined symbol "MAPICON_LOCAL"
C:\Users\CyberLiquid\Downloads\GF\GothFahterJohnny\gamemodes\GodFather.pwn(3316) : error 017: undefined symbol "MAPICON_LOCAL"
C:\Users\CyberLiquid\Downloads\GF\GothFahterJohnny\gamemodes\GodFather.pwn(3318) : error 017: undefined symbol "MAPICON_LOCAL"
C:\Users\CyberLiquid\Downloads\GF\GothFahterJohnny\gamemodes\GodFather.pwn(3319) : error 017: undefined symbol "MAPICON_LOCAL"
C:\Users\CyberLiquid\Downloads\GF\GothFahterJohnny\gamemodes\GodFather.pwn(3320) : error 017: undefined symbol "MAPICON_LOCAL"
C:\Users\CyberLiquid\Downloads\GF\GothFahterJohnny\gamemodes\GodFather.pwn(3321) : error 017: undefined symbol "MAPICON_LOCAL"
C:\Users\CyberLiquid\Downloads\GF\GothFahterJohnny\gamemodes\GodFather.pwn(3322) : error 017: undefined symbol "MAPICON_LOCAL"
C:\Users\CyberLiquid\Downloads\GF\GothFahterJohnny\gamemodes\GodFather.pwn(3323) : error 017: undefined symbol "MAPICON_LOCAL"
C:\Users\CyberLiquid\Downloads\GF\GothFahterJohnny\gamemodes\GodFather.pwn(3324) : error 017: undefined symbol "MAPICON_LOCAL"
C:\Users\CyberLiquid\Downloads\GF\GothFahterJohnny\gamemodes\GodFather.pwn(3325) : error 017: undefined symbol "MAPICON_LOCAL"
C:\Users\CyberLiquid\Downloads\GF\GothFahterJohnny\gamemodes\GodFather.pwn(3326) : error 017: undefined symbol "MAPICON_LOCAL"
C:\Users\CyberLiquid\Downloads\GF\GothFahterJohnny\gamemodes\GodFather.pwn(3327) : error 017: undefined symbol "MAPICON_LOCAL"
C:\Users\CyberLiquid\Downloads\GF\GothFahterJohnny\gamemodes\GodFather.pwn(3328) : error 017: undefined symbol "MAPICON_LOCAL"
C:\Users\CyberLiquid\Downloads\GF\GothFahterJohnny\gamemodes\GodFather.pwn(3329) : error 017: undefined symbol "MAPICON_LOCAL"
C:\Users\CyberLiquid\Downloads\GF\GothFahterJohnny\gamemodes\GodFather.pwn(3330) : error 017: undefined symbol "MAPICON_LOCAL"
C:\Users\CyberLiquid\Downloads\GF\GothFahterJohnny\gamemodes\GodFather.pwn(3331) : error 017: undefined symbol "MAPICON_LOCAL"
C:\Users\CyberLiquid\Downloads\GF\GothFahterJohnny\gamemodes\GodFather.pwn(3332) : error 017: undefined symbol "MAPICON_LOCAL"
C:\Users\CyberLiquid\Downloads\GF\GothFahterJohnny\gamemodes\GodFather.pwn(3333) : error 017: undefined symbol "MAPICON_LOCAL"
C:\Users\CyberLiquid\Downloads\GF\GothFahterJohnny\gamemodes\GodFather.pwn(3334) : error 017: undefined symbol "MAPICON_LOCAL"
C:\Users\CyberLiquid\Downloads\GF\GothFahterJohnny\gamemodes\GodFather.pwn(3335) : error 017: undefined symbol "MAPICON_LOCAL"
C:\Users\CyberLiquid\Downloads\GF\GothFahterJohnny\gamemodes\GodFather.pwn(3336) : error 017: undefined symbol "MAPICON_LOCAL"
C:\Users\CyberLiquid\Downloads\GF\GothFahterJohnny\gamemodes\GodFather.pwn(3337) : error 017: undefined symbol "MAPICON_LOCAL"
C:\Users\CyberLiquid\Downloads\GF\GothFahterJohnny\gamemodes\GodFather.pwn(3338) : error 017: undefined symbol "MAPICON_LOCAL"
C:\Users\CyberLiquid\Downloads\GF\GothFahterJohnny\gamemodes\GodFather.pwn(3339) : error 017: undefined symbol "MAPICON_LOCAL"
C:\Users\CyberLiquid\Downloads\GF\GothFahterJohnny\gamemodes\GodFather.pwn(3340) : error 017: undefined symbol "MAPICON_LOCAL"
C:\Users\CyberLiquid\Downloads\GF\GothFahterJohnny\gamemodes\GodFather.pwn(3341) : error 017: undefined symbol "MAPICON_LOCAL"

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

26 Errors.


EVO KODA -.-
//--------------------------------------------------------------------
for(new h = 0; h < sizeof(HouseInfo); h++){
if(HouseInfo == 0){
SetPlayerMapIcon(playerid, 31, HouseInfo, HouseInfo, HouseInfo, 52, 0, MAPICON_LOCAL );}
if(HouseInfo == 1){
if(PlayerInfo==h){
SetPlayerMapIcon(playerid, 32, HouseInfo, HouseInfo, HouseInfo, 52, 0, MAPICON_LOCAL );}}}}
//------------------------------------------------------------------------------
SetPlayerMapIcon(playerid, 52, 1480.98,-1772.31,18.80, 52, 0, MAPICON_LOCAL );//-Bank of Los Santos Streamer
SetPlayerMapIcon(playerid, 49, 1834.466552,-1682.079467,13.430337, 52, 0, MAPICON_LOCAL );//-Bar Streamer
SetPlayerMapIcon(playerid, 22, 1173.2,-1340.6,13.9, 52, 0, MAPICON_LOCAL );
SetPlayerMapIcon(playerid, 57, 1888.7731,-2637.9573,13.5469, 52, 0, MAPICON_LOCAL );
SetPlayerMapIcon(playerid, 62, 2495.0476,-1685.7764,13.5124, 52, 0, MAPICON_LOCAL );
SetPlayerMapIcon(playerid, 61, 2466.9846,-1698.5812,1013.5078, 52, 0, MAPICON_LOCAL );
SetPlayerMapIcon(playerid, 60, 852.2934,-1437.0962,15.0437, 52, 0, MAPICON_LOCAL );
SetPlayerMapIcon(playerid, 44, 1046.1611,-1132.8386,23.8281, 52, 0, MAPICON_LOCAL );
SetPlayerMapIcon(playerid, 21, 1176.4625,-1322.6938,14.0225, 52, 0, MAPICON_LOCAL );
SetPlayerMapIcon(playerid, 23, 1124.2415,-2037.1274,69.8847, 52, 0, MAPICON_LOCAL );
SetPlayerMapIcon(playerid, 38, 1169.9244,-1489.5645,22.7559, 52, 0, MAPICON_LOCAL );
SetPlayerMapIcon(playerid, 17, 1173.1555,-963.2166,42.9375, 52, 0, MAPICON_LOCAL );
SetPlayerMapIcon(playerid, 56, 1480.9323,-1767.7324,18.7958, 52, 0, MAPICON_LOCAL );
SetPlayerMapIcon(playerid, 30, 1528.779, -1678.113, 5.890625, 52, 0, MAPICON_LOCAL );
SetPlayerMapIcon(playerid, 30, 1178.03, -1323.41, 14.10, 52, 0, MAPICON_LOCAL );
SetPlayerMapIcon(playerid, 30, 1518.5179,-1452.9224,14.2031, 52, 0, MAPICON_LOCAL );
SetPlayerMapIcon(playerid, 30, 1698.5310, -2092.7671, 13.5469, 52, 0, MAPICON_LOCAL );
SetPlayerMapIcon(playerid, 36, 1791.212036, -1164.631713, 23.828100, 52, 0, MAPICON_LOCAL );
SetPlayerMapIcon(playerid, 36, -2288.067626, -79.334396, 35.320301, 52, 0, MAPICON_LOCAL );
SetPlayerMapIcon(playerid, 36, 1498.360107, -1583.031860, 13.546899, 52, 0, MAPICON_LOCAL );
SetPlayerMapIcon(playerid, 36, 1568.625122, -1690.535766, 5.890600, 52, 0, MAPICON_LOCAL );
SetPlayerMapIcon(playerid, 36, 1462.395751, -1012.391174, 26.843799, 52, 0, MAPICON_LOCAL );
SetPlayerMapIcon(playerid, 36, 1462.395751, -1012.391174, 26.843799, 52, 0, MAPICON_LOCAL );
SetPlayerMapIcon(playerid, 36, -2016.381469, -37.667701, 35.295700, 52, 0, MAPICON_LOCAL );
SetPlayerMapIcon(playerid, 36, -1722.235595, -118.215698, 3.548899, 52, 0, MAPICON_LOCAL );
SetPlayerMapIcon(playerid, 36, -2521.005859, -623.331176, 132.768997, 52, 0, MAPICON_LOCAL );
SetPlayerMapIcon(playerid, 36, 1702.400024, -1471.300048, 13.546899, 52, 0, MAPICON_LOCAL );
SetPlayerMapIcon(playerid, 36, 2350.000000, -1411.800048, 23.992300, 52, 0, MAPICON_LOCAL );//-Medics Streamer
SetPlayerMapIcon(playerid, 36, 844.656005, -1045.555664, 25.430099, 52, 0, MAPICON_LOCAL );//-Medics Streamer
SetPlayerMapIcon(playerid, 36, 2510.600097, -1468.199951, 24.023899, 52, 0, MAPICON_LOCAL );//-Medics Streamer
SetPlayerMapIcon(playerid, 36, 1205.971557, -1459.673706, 13.385999, 52, 0, MAPICON_LOCAL );//-Medics Streamer
SetPlayerMapIcon(playerid, 36, 1310.126586, -1367.812255, 13.540800, 52, 0, MAPICON_LOCAL );//-Medics Streamer
SetPlayerMapIcon(playerid, 36, 2281.909179, -2364.279052, 13.546899, 52, 0, MAPICON_LOCAL );//-Medics Streamer
SetPlayerMapIcon(playerid, 36, 562.405029, -1289.995483, 17.248199, 52, 0, MAPICON_LOCAL );//-Medics Streamer
SetPlayerMapIcon(playerid, 36, -1968.559814, 296.269592, 35.171901, 52, 0, MAPICON_LOCAL );//-Medics Streamer
Deleted User
Obrisan korisnik
15. Maj 2012.
Evo ti ovo bio si pogrijesio nisi stavio dobre provjere za igraca i nisi dobro stavio provjeru je li logiran ti si stavio provjeru je li igrac admin lvl jedan ali nisi stavio da li je ulugorian evo ti ovo pa probaj ovo je iz mog gm-a
if(strcmp(cmd, "/ooc", true) == 0 || strcmp(cmd, "/o", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        if(gPlayerLogged == 0)
        {
            SendClientMessage(playerid, COLOR_GREY, "Niste se prijavili !");
            return 1;
        }
if ((noooc) && PlayerInfo < 1)
{
SendClientMessage(playerid, COLOR_RED, "OOC je ugasen od strane Admina!");
return 1;
}
if(PlayerInfo == 1)
{
SendClientMessage(playerid, TEAM_CYAN_COLOR, "  Ne mozete pricati, oduzeto vam je pravo govora !");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext <= ' '))
{
idx++;
}
new offset = idx;
new result;
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext;
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "Koriscenje: (/o)oc [ooc chat]");
return 1;
}
format(string, sizeof(string), "(( %s: %s )) " , sendername, result);
OOCOff(COLOR_OOC,string);
printf("%s", string);
}
return 1;
}
KrUnOmAn?!
4
Enforcer
15. Maj 2012.
Ok uspio sam , hvala puno svima , moze lock  😄

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha