[Pomoc] isPlayerAdmin error

23. Jun 2013. Zaključano
295
pregleda
5
postova
KrUnOmAn?!
4
Enforcer
23. Jun 2013.
Skripta koju koristim: APB
Detaljan opis problema: Ja pokusavam staviti da ovu komandu mogu samo kao admin ali mi nece i nece i izbacuje error pa jel bi netko od vas pro skriptera znao rjesit da mi stavi ovu komandu pod IsPlayerAdmin :3
Dio skripte:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/createot", true) || !strcmp(cmdtext, "/cto", true) || !strcmp(cmdtext, "/create", true))
    {
        if(CreatingTextO == false)
        {
TextAlign = 1,
            Text = "Example",
FontName = "Arial",
TextColor = HexToInt("0xFFFF8200"),
BackgColor = HexToInt("0xFF000000");

        CreatingTextO = true, ShowMainMenu(playerid);
        GetPlayerPos(playerid, Pos, Pos, Pos), GetPlayerFacingAngle(playerid, Pos);
        new Float:x = Pos + (5.0 * floatsin(-Pos, degrees));
    new Float:y = Pos + (5.0 * floatcos(-Pos, degrees));
   
        Object = CreatePlayerObject(playerid, ObjectID, x, y, Pos+0.5, 0.0, 0.0, Pos - 90.0);
       
        SetPlayerObjectMaterialText(playerid, Object, Text, Index, Size, FontName,
FontSize, UseBold, TextColor, BackgColor, TextAlign);

SendClientMessage(playerid,-1,""R"* "B"INFO: "Y"New Text Object created.");
} else { ShowMainMenu(playerid); }
        return 1;
    }
    if(!strcmp(cmdtext, "/test", true))
    {
        new MiObjeto = CreateObject(19353, 1965.633911, 1343.049560, 15.874607, 0.000000, 0.000000, 179.142486);
SetObjectMaterialText(MiObjeto, "Example", 0, 50, "Arial", 24, 0, -32256, -16777216, 1);
        return 1;
    }
    return 0;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):
BocaBajrovic1995
5
Kingpin
23. Jun 2013.
Probaj sad
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/createot", true) || !strcmp(cmdtext, "/cto", true) || !strcmp(cmdtext, "/create", true))
    {
if (PlayerInfo >= 1)
{
        if(CreatingTextO == false)
        {
TextAlign = 1,
            Text = "Example",
FontName = "Arial",
TextColor = HexToInt("0xFFFF8200"),
BackgColor = HexToInt("0xFF000000");

        CreatingTextO = true, ShowMainMenu(playerid);
        GetPlayerPos(playerid, Pos, Pos, Pos), GetPlayerFacingAngle(playerid, Pos);
        new Float:x = Pos + (5.0 * floatsin(-Pos, degrees));
    new Float:y = Pos + (5.0 * floatcos(-Pos, degrees));
   
        Object = CreatePlayerObject(playerid, ObjectID, x, y, Pos+0.5, 0.0, 0.0, Pos - 90.0);
       
        SetPlayerObjectMaterialText(playerid, Object, Text, Index, Size, FontName,
FontSize, UseBold, TextColor, BackgColor, TextAlign);

SendClientMessage(playerid,-1,""R"* "B"INFO: "Y"New Text Object created.");
} else { ShowMainMenu(playerid); }
        return 1;
    }
    if(!strcmp(cmdtext, "/test", true))
    {
        new MiObjeto = CreateObject(19353, 1965.633911, 1343.049560, 15.874607, 0.000000, 0.000000, 179.142486);
SetObjectMaterialText(MiObjeto, "Example", 0, 50, "Arial", 24, 0, -32256, -16777216, 1);
        return 1;
    }
    return 0;
}
[WW]ivan
5
Kingpin
23. Jun 2013.
boca reko je isplayeradmin a ne padmin
if(!strcmp(cmdtext, "/createot", true) || !strcmp(cmdtext, "/cto", true) || !strcmp(cmdtext, "/create", true))
    {
    if(!IsPlayerAdmin(playerid))
    {
        if(CreatingTextO == false)
        {
TextAlign = 1,
            Text = "Example",
FontName = "Arial",
TextColor = HexToInt("0xFFFF8200"),
BackgColor = HexToInt("0xFF000000");

        CreatingTextO = true, ShowMainMenu(playerid);
        GetPlayerPos(playerid, Pos, Pos, Pos), GetPlayerFacingAngle(playerid, Pos);
        new Float:x = Pos + (5.0 * floatsin(-Pos, degrees));
    new Float:y = Pos + (5.0 * floatcos(-Pos, degrees));

        Object = CreatePlayerObject(playerid, ObjectID, x, y, Pos+0.5, 0.0, 0.0, Pos - 90.0);

        SetPlayerObjectMaterialText(playerid, Object, Text, Index, Size, FontName,
FontSize, UseBold, TextColor, BackgColor, TextAlign);

SendClientMessage(playerid,-1,""R"* "B"INFO: "Y"New Text Object created.");
} else { ShowMainMenu(playerid); }
}
        return 1;
    }
KrUnOmAn?!
4
Enforcer
23. Jun 2013.
Tnx radi, LOCK
BocaBajrovic1995
5
Kingpin
23. Jun 2013.
Crazyn3ss wrote on June 23, 2013, 11:49 am:
boca reko je isplayeradmin a ne padmin
if(!strcmp(cmdtext, "/createot", true) || !strcmp(cmdtext, "/cto", true) || !strcmp(cmdtext, "/create", true))
    {
    if(!IsPlayerAdmin(playerid))
    {
        if(CreatingTextO == false)
        {
TextAlign = 1,
            Text = "Example",
FontName = "Arial",
TextColor = HexToInt("0xFFFF8200"),
BackgColor = HexToInt("0xFF000000");

        CreatingTextO = true, ShowMainMenu(playerid);
        GetPlayerPos(playerid, Pos, Pos, Pos), GetPlayerFacingAngle(playerid, Pos);
        new Float:x = Pos + (5.0 * floatsin(-Pos, degrees));
    new Float:y = Pos + (5.0 * floatcos(-Pos, degrees));

        Object = CreatePlayerObject(playerid, ObjectID, x, y, Pos+0.5, 0.0, 0.0, Pos - 90.0);

        SetPlayerObjectMaterialText(playerid, Object, Text, Index, Size, FontName,
FontSize, UseBold, TextColor, BackgColor, TextAlign);

SendClientMessage(playerid,-1,""R"* "B"INFO: "Y"New Text Object created.");
} else { ShowMainMenu(playerid); }
}
        return 1;
    }
A nisam primetio 😄

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha