dialog/what the wrong with this?
#1

i wanna make those cmds in dialog
pawn Код:
if(strcmp(cmdtext, "/rules", true) == 0)
{
SendClientMessage(playerid,grey,"             The Server Rules");
SendClientMessage(playerid,grey,"        The Admins Rules");
SendClientMessage(playerid,grey,"(1)Admins Rule: Don't ban forever");
SendClientMessage(playerid,grey,"(2)Admins Rule: Don't ban or kick or mute or freeze without reason");
SendClientMessage(playerid,grey,"       The Players Rules");
SendClientMessage(playerid,grey,"(1)Players Rule: Don't hack/cheat");
SendClientMessage(playerid,grey,"(2)Players Rule: Don;t ad");
SendClientMessage(playerid,grey,"(3)Players Rule: Don't Ask to be Admin");
SendClientMessage(playerid,grey,"(4)Players Rule: Don't say bad words");
SendClientMessage(playerid,grey,"(5)Player Rules: Don't Go To Admins House Only Admins");
return 1;
}
if(strcmp(cmdtext, "/cmds", true) == 0)
{
SendClientMessage(playerid,grey,"Account: /login /register /stats");
SendClientMessage(playerid,grey,"Chat: /pm /me /do");
SendClientMessage(playerid,grey,"Basic: /rules /report");
SendClientMessage(playerid,grey,"Teleports: /gs /lsa /lc /pipe /minigames");
SendClientMessage(playerid,grey,"Other: /lol /emenu /call /kill /healme /gang /call /hangup /pickup /flip /afk afklist /back /flip /jobs /anims");
SendClientMessage(playerid,grey,"Cars: /tunecar /cars /lock /unlock");
return 1;
}

and i wanna put this jobs system in dialog
pawn Код:
//------------------------------------------------------------------------------
// Made By Kenguru
//
//------------------------------------------------------------------------------
#include <a_samp>

#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xAA3333AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_WHITE 0xFFFFFFAA

#define FILTERSCRIPT
#if defined FILTERSCRIPT

#define TEAM_CIVILIAN 1
#define TEAM_TAXI 2
#define TEAM_POLICE 3
#define TEAM_SERVISE 4
#define TEAM_AMBULANCE 5
#define TEAM_GUARD 6

forward Money();

new gTeam[MAX_PLAYERS];
new name[MAX_PLAYER_NAME];
new money;

public OnFilterScriptInit()
{
    print("   Jobs by KeNGuRu Loaded!");
    money = SetTimer("Money", 300000, true);
    return 1;
}

public OnFilterScriptExit()
{
    KillTimer(money);
    return 1;
}

#endif

public OnPlayerConnect(playerid)
{
    SendClientMessage(playerid, COLOR_GREY, "JobS loaded by KeNGuRu");
    SendClientMessage(playerid, COLOR_GREY, "type/jobs for jobs!");
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    new tmp[256];
    new cmd[256];
    new string[256];
    new giveplayerid, idx;

    cmd = strtok(cmdtext, idx);
    tmp = strtok(cmdtext, idx);
    giveplayerid = strval(tmp);
    //JobS--------------------------------------------------------------------
    if(strcmp(cmd, "/trucker", true) == 0)
    {
            if(gTeam[playerid] == TEAM_CIVILIAN)
            {
            GetPlayerName(playerid, name, sizeof (name));
            format(string, sizeof(string), "Trucker, %s working!", name);
            SendClientMessageToAll(COLOR_GREEN, string);
            gTeam[playerid] = TEAM_TAXI;
            } else {
            SendClientMessage(playerid, COLOR_RED, "First quit Job! (/quitjob)");
            }
            return 1;
    }
        if(strcmp(cmd, "/taxi", true) == 0)
    {
            if(gTeam[playerid] == TEAM_CIVILIAN)
            {
            GetPlayerName(playerid, name, sizeof (name));
            format(string, sizeof(string), "Taxi Driver, %s working!", name);
            SendClientMessageToAll(COLOR_GREEN, string);
            gTeam[playerid] = TEAM_TAXI;
            } else {
            SendClientMessage(playerid, COLOR_RED, "First quit Job! (/quitjob)");
            }
            return 1;
    }

    if(strcmp(cmd, "/police", true) == 0)
    {

            if(gTeam[playerid] == TEAM_CIVILIAN)
            {
            GetPlayerName(playerid, name, sizeof (name));
            format(string, sizeof(string), "Police, %s Wroking!", name);
            SendClientMessageToAll(COLOR_GREEN, string);
            SetPlayerArmour(playerid, 100);
            gTeam[playerid] = TEAM_POLICE;
            } else {
            SendClientMessage(playerid, COLOR_RED, "First quit Job! (/quitjob)");
            }
            return 1;
    }

    if(strcmp(cmd, "/carservice", true) == 0)
    {
            if(gTeam[playerid] == TEAM_CIVILIAN)
            {
            GetPlayerName(playerid, name, sizeof (name));
            format(string, sizeof(string), "Assistance, %s Working!", name);
            SendClientMessageToAll(COLOR_GREEN, string);
            gTeam[playerid] = TEAM_SERVISE;
            } else {
            SendClientMessage(playerid, COLOR_RED, "First quit Job! (/quitjob)");
            }
            return 1;
    }

    if(strcmp(cmd, "/ambulance", true) == 0)
    {
            if(gTeam[playerid] == TEAM_CIVILIAN)
            {
            GetPlayerName(playerid, name, sizeof (name));
            format(string, sizeof(string), "Ambulance, %s Working!", name);
            SendClientMessageToAll(COLOR_GREEN, string);
            SetPlayerHealth(playerid, 100);
            gTeam[playerid] = TEAM_AMBULANCE;
            } else {
            SendClientMessage(playerid, COLOR_RED, "First quit Job! (/quitjob)");
            }
            return 1;
    }

    if(strcmp(cmd, "/guard", true) == 0)
    {
            if(gTeam[playerid] == TEAM_CIVILIAN)
            {
            GetPlayerName(playerid, name, sizeof (name));
            format(string, sizeof(string), "Guard, %s working!", name);
            SendClientMessageToAll(COLOR_GREEN, string);
            SetPlayerHealth(playerid, 100);
            SetPlayerArmour(playerid, 100);
            gTeam[playerid] = TEAM_GUARD;
            } else {
            SendClientMessage(playerid, COLOR_RED, "First quit Job! (/quitjob)");
            }
            return 1;
    }

    //other commands
    if(strcmp(cmd, "/quitjob", true) == 0)
    {
            if(gTeam[playerid] == TEAM_TAXI || gTeam[playerid] == TEAM_POLICE || gTeam[playerid] == TEAM_SERVISE || gTeam[playerid] == TEAM_AMBULANCE || gTeam[playerid] == TEAM_GUARD)
            {
                gTeam[playerid] = TEAM_CIVILIAN;
                } else {
                SendClientMessage(playerid, COLOR_RED, "You Don't Have a JoB!");
            }
            return 1;
    }

    if(strcmp(cmd, "/jobs", true) == 0)
    {
        SendClientMessage(playerid, COLOR_RED, "JobS:");
        SendClientMessage(playerid, COLOR_YELLOW, "/trucker - Truck Driver");
        SendClientMessage(playerid, COLOR_YELLOW, "/taxi - Taxi Driver");
        SendClientMessage(playerid, COLOR_YELLOW, "/police - Police");
        SendClientMessage(playerid, COLOR_YELLOW, "/carservice - Assistance");
        SendClientMessage(playerid, COLOR_YELLOW, "/ambulance - Ambulance");
        SendClientMessage(playerid, COLOR_YELLOW, "/guard - Guard");
        SendClientMessage(playerid, COLOR_YELLOW, "/quitjob - Quit JoB");
        SendClientMessage(playerid, COLOR_YELLOW, "/job-cmds - Job CmDs");
        return 1;
    }

    if(strcmp(cmd, "/job-cmds", true) == 0)
    {
        SendClientMessage(playerid, COLOR_RED, "----Commands----:");
        if(gTeam[playerid] == TEAM_POLICE)
        {
            SendClientMessage(playerid, COLOR_YELLOW, "Police Commands:");
            SendClientMessage(playerid, COLOR_YELLOW, "/sokkol <ID>, /prison <ID>, /unprison <ID>");
        }
        else if(gTeam[playerid] == TEAM_SERVISE)
        {
            SendClientMessage(playerid, COLOR_YELLOW, "Assistance Commands:");
            SendClientMessage(playerid, COLOR_YELLOW, "/repair <ID>");
        }
        else if(gTeam[playerid] == TEAM_AMBULANCE)
        {
            SendClientMessage(playerid, COLOR_YELLOW, "Ambulance Commands:");
            SendClientMessage(playerid, COLOR_YELLOW, "/heal <ID>");
        }
        else if(gTeam[playerid] == TEAM_AMBULANCE)
        {
            SendClientMessage(playerid, COLOR_YELLOW, "Guard Commands:");
            SendClientMessage(playerid, COLOR_YELLOW, "/guard <ID>");
        }
        else if(gTeam[playerid] == TEAM_CIVILIAN)
        {
            SendClientMessage(playerid, COLOR_YELLOW, "You Don't Have a JoB!");
        }
        return 1;
    }

    //Rendхrsйgi parancsok------------------------------------------------------
    new jailed[MAX_PLAYERS];

    if(strcmp(cmd, "/sokkol", true) == 0)
    {
        if(gTeam[playerid] == TEAM_POLICE)
        {

            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_RED, "[HELP]: /sokkol <ID>");
                return 1;
            }

            if(giveplayerid == playerid)
            {
                SendClientMessage(playerid, COLOR_RED, "[ERROR]:Wrong ID!");
                } else {
                if(IsPlayerConnected(giveplayerid))
                {
                    GetPlayerName(playerid, name, sizeof (name));
                    format(string, sizeof(string), "%s Freezed!", name);
                    SendClientMessage(giveplayerid, COLOR_RED, string);
                    new Float:Health;
                    SetPlayerHealth(playerid, GetPlayerHealth(playerid, Health) -50);
                    SendClientMessage(playerid, COLOR_GREEN, "Good Freeze!");
                    } else {
                    SendClientMessage(playerid, COLOR_RED, "[ERROR]:Wrong ID!");
                }
            }
        } else {
        SendClientMessage(playerid,COLOR_RED,"You're not a Police!");
        }
        return 1;
    }

    if(strcmp(cmd, "/prison", true) == 0)
    {
        if(gTeam[playerid] == TEAM_POLICE)
        {

            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_RED, "[HELP]: /prison <ID>");
                return 1;
            }

            if(giveplayerid == playerid)
            {
                SendClientMessage(playerid, COLOR_RED, "[ERROR]:Wrong ID!");
                } else {
                if(IsPlayerConnected(giveplayerid))
                {
                    if (jailed[giveplayerid] == 0)
                    {
                        GetPlayerName(playerid, name, sizeof (name));
                        format(string, sizeof(string), "%s Jailed You!", name);
                        SendClientMessage(giveplayerid, COLOR_RED, string);
                        new string2[256];
                        new name2[MAX_PLAYER_NAME];
                        GetPlayerName(giveplayerid, name2, sizeof (name2));
                        format(string2, sizeof(string2), "Officer %s Jailed %s!", name, name2);
                        SendClientMessageToAll(COLOR_RED, string2);
                        SetPlayerInterior(giveplayerid, 6);
                        SetPlayerPos(giveplayerid, 264.3591,77.5832,1001.0391);
                        SetCameraBehindPlayer(giveplayerid);
                        ResetPlayerWeapons(giveplayerid);
                        ResetPlayerMoney(giveplayerid);
                        jailed[giveplayerid] = 1;
                        SendClientMessage(playerid, COLOR_GREEN, "Good Jail!");
                        } else {
                        SendClientMessage(playerid, COLOR_RED, "Player now in Jail!");
                    }
                    } else {
                    SendClientMessage(playerid, COLOR_RED, "[ERROR]:Wrong ID!");
                }
            }
        } else {
        SendClientMessage(playerid,COLOR_RED,"You're Not a Police!");
        }
        return 1;
    }

    if(strcmp(cmd, "/unprison", true) == 0)
    {
        if(gTeam[playerid] == TEAM_POLICE)
        {

            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_RED, "[Help]: /unjail <ID>");
                return 1;
            }

            if(giveplayerid == playerid)
            {
                SendClientMessage(playerid, COLOR_RED, "[ERROR]:Wrong ID!");
                } else {
                if(IsPlayerConnected(giveplayerid))
                {
                    if (jailed[giveplayerid] == 1)
                    {
                        GetPlayerName(playerid, name, sizeof (name));
                        format(string, sizeof(string), "%s Unjailed You!", name);
                        SendClientMessage(giveplayerid, COLOR_RED, string);
                        new string2[256];
                        new name2[MAX_PLAYER_NAME];
                        GetPlayerName(giveplayerid, name2, sizeof (name2));
                        format(string2, sizeof(string2), "Officer %s Unjailed %s-t!", name, name2);
                        SendClientMessageToAll(COLOR_RED, string2);
                        SetPlayerInterior(giveplayerid, 0);
                        SetPlayerPos(giveplayerid,1546.1195,-1675.4786,13.5617);
                        SetCameraBehindPlayer(giveplayerid);
                        ResetPlayerWeapons(giveplayerid);
                        jailed[giveplayerid] = 0;
                        SendClientMessage(playerid, COLOR_GREEN, "Good Unjail!");
                        } else {
                        SendClientMessage(playerid, COLOR_RED, "Player Unjailet at the moment!");
                    }
                    } else {
                    SendClientMessage(playerid, COLOR_RED, "[ERROR]:Wrong ID!");
                }
            }
        } else {
        SendClientMessage(playerid,COLOR_RED,"You're Not a Police!");
        }
        return 1;
    }

    //Autуszerelх parancsok
    new vehicleid = GetPlayerVehicleID(giveplayerid);

    if(strcmp(cmd, "/repair", true) == 0)
    {
        if(gTeam[playerid] == TEAM_SERVISE)
        {

            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_RED, "[HELP]: /repair <ID>");
                return 1;
            }

            if(giveplayerid == playerid)
            {
                SendClientMessage(playerid, COLOR_RED, "[ERROR]:Wrong ID!");
                } else {
                if(IsPlayerConnected(giveplayerid))
                {
                    GetPlayerName(playerid, name, sizeof (name));
                    format(string, sizeof(string), "%s Repaired You're Car!", name);
                    SendClientMessage(giveplayerid, COLOR_RED, string);
                    SetVehicleHealth(vehicleid, 1000);
                    GivePlayerMoney(giveplayerid, -50);
                    GivePlayerMoney(playerid, 50);
                    SendClientMessage(playerid, COLOR_GREEN, "Good Repair!");
                    } else {
                    SendClientMessage(playerid, COLOR_RED, "[ERROR]:Wrong ID!");
                }
            }
        } else {
        SendClientMessage(playerid,COLOR_RED,"You're not an assistance!");
        }
        return 1;
    }

    //Mentхs parancsok
    if(strcmp(cmd, "/heal", true) == 0)
    {
        if(gTeam[playerid] == TEAM_AMBULANCE)
        {

            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_RED, "[HELP]: /heal <ID>");
                return 1;
            }

            if(giveplayerid == playerid)
            {
                SendClientMessage(playerid, COLOR_RED, "[ERROR]:Wrong ID!");
                } else {
                if(IsPlayerConnected(giveplayerid))
                {
                    GetPlayerName(playerid, name, sizeof (name));
                    format(string, sizeof(string), "%s Healed You!", name);
                    SendClientMessage(giveplayerid, COLOR_RED, string);
                    SetPlayerHealth(giveplayerid, 100);
                    GivePlayerMoney(giveplayerid, -100);
                    GivePlayerMoney(playerid, 100);
                    SendClientMessage(playerid, COLOR_GREEN, "Healed!");
                    } else {
                    SendClientMessage(playerid, COLOR_RED, "[ERROR]:Wrong ID!");
                }
            }
        } else {
        SendClientMessage(playerid,COLOR_RED,"You're Not an Ambulance!");
        }
        return 1;
    }

    //Testхr parancsok
    if(strcmp(cmd, "/guard", true) == 0)
    {
        if(gTeam[playerid] == TEAM_AMBULANCE)
        {

            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_RED, "[HELP]: /guard <ID>");
                return 1;
            }

            if(giveplayerid == playerid)
            {
                SendClientMessage(playerid, COLOR_RED, "[ERROR]:Wrong ID!");
                } else {
                if(IsPlayerConnected(giveplayerid))
                {
                    GetPlayerName(playerid, name, sizeof (name));
                    format(string, sizeof(string), "%s You're Guard!", name);
                    SendClientMessage(giveplayerid, COLOR_RED, string);
                    GivePlayerMoney(giveplayerid, -1000);
                    GivePlayerMoney(playerid, 1000);
                    GivePlayerWeapon(playerid, 4, 1);
                    GivePlayerWeapon(playerid, 23, 1000);
                    GivePlayerWeapon(playerid, 31, 10000);
                    SendClientMessage(playerid, COLOR_GREEN, "Gratz!");
                    } else {
                    SendClientMessage(playerid, COLOR_RED, "[ERROR]:Wrong ID!");
                }
            }
        } else {
        SendClientMessage(playerid,COLOR_RED,"You're not a Guard!");
        }
        return 1;
    }
    return 0;
}

public OnPlayerRequestClass(playerid, classid)
{
    if(classid == 0 || classid == 1)
    {
        gTeam[playerid] = TEAM_CIVILIAN;
    }
}

public Money()
{
    for(new i=0; i<MAX_PLAYERS; i++)
    {
         if(gTeam[i] == TEAM_TAXI || gTeam[i] == TEAM_POLICE || gTeam[i] == TEAM_SERVISE || TEAM_AMBULANCE || TEAM_GUARD)
         {
             
         }
    }
}

public OnPlayerDeath(playerid)
{
    gTeam[playerid] = TEAM_CIVILIAN;
    SendClientMessage(playerid, COLOR_RED, "You're Death! ");
    return 1;
}

strtok(const string[], &index)
{
    new length = strlen(string);
    while ((index < length) && (string[index] <= ' '))
    {
        index++;
    }

    new offset = index;
    new result[20];
    while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
    {
        result[index - offset] = string[index];
        index++;
    }
    result[index - offset] = EOS;
    return result;
}

and what the wrong with this cmd and this fs
pawn Код:
if(strcmp(cmd, "/bigfall", true) == 0) {
                if(IsPlayerInAnyVehicle(playerid)) {
                    new Float:X;
                    new Float:Y;
                    new Float:Z;
                    new VehicleID;
                    GetPlayerPos(playerid, X, Y, Z);
                    VehicleID = GetPlayerVehicleID(playerid);
                    SetVehiclePos(VehicleID, X, Y, Z + 800.00);
                    SetPlayerFacingAngle(playerid,Ang);
                    GivePlayerWeapon(playerid,46,1);
                } else {
                    new Float:X;
                    new Float:Y;
                    new Float:Z;
                    GetPlayerPos(playerid, X, Y, Z);
                    SetPlayerPos(playerid, X, Y, Z + 800.00);
                    SetPlayerFacingAngle(playerid,Ang);
                    GivePlayerWeapon(playerid,46,1);
                    GameTextForPlayer(playerid, "~w~Weeeeeeeeeeeeeeeeee!!",8000,5);
                 }
            return 1;
        }
and this fs
Код:
F:\Fun and Games server\filterscripts\ladmin2.pwn(874) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
F:\Fun and Games server\filterscripts\ladmin2.pwn(907) : error 017: undefined symbol "strtok"
F:\Fun and Games server\filterscripts\ladmin2.pwn(907) : error 033: array must be indexed (variable "cmd")
F:\Fun and Games server\filterscripts\ladmin2.pwn(1058) : error 017: undefined symbol "strtok"
F:\Fun and Games server\filterscripts\ladmin2.pwn(1058) : error 033: array must be indexed (variable "tmp")
F:\Fun and Games server\filterscripts\ladmin2.pwn(1062) : error 017: undefined symbol "strtok"
F:\Fun and Games server\filterscripts\ladmin2.pwn(1062) : error 033: array must be indexed (variable "tmp")
F:\Fun and Games server\filterscripts\ladmin2.pwn(1084) : error 017: undefined symbol "strtok"
F:\Fun and Games server\filterscripts\ladmin2.pwn(1084) : error 033: array must be indexed (variable "tmp")
F:\Fun and Games server\filterscripts\ladmin2.pwn(1118) : error 017: undefined symbol "strtok"
F:\Fun and Games server\filterscripts\ladmin2.pwn(1118) : error 033: array must be indexed (variable "tmp")
F:\Fun and Games server\filterscripts\ladmin2.pwn(1169) : error 017: undefined symbol "strtok"
F:\Fun and Games server\filterscripts\ladmin2.pwn(1169) : error 033: array must be indexed (variable "tmp")
F:\Fun and Games server\filterscripts\ladmin2.pwn(1193) : error 017: undefined symbol "strtok"
F:\Fun and Games server\filterscripts\ladmin2.pwn(1193) : error 033: array must be indexed (variable "tmp")
F:\Fun and Games server\filterscripts\ladmin2.pwn(1247) : error 017: undefined symbol "strtok"
F:\Fun and Games server\filterscripts\ladmin2.pwn(1247) : error 033: array must be indexed (variable "tmp")
F:\Fun and Games server\filterscripts\ladmin2.pwn(1281) : error 017: undefined symbol "strtok"
F:\Fun and Games server\filterscripts\ladmin2.pwn(1281) : error 033: array must be indexed (variable "tmp")
F:\Fun and Games server\filterscripts\ladmin2.pwn(1287) : error 017: undefined symbol "strtok"
F:\Fun and Games server\filterscripts\ladmin2.pwn(1287) : error 033: array must be indexed (variable "tmp")
F:\Fun and Games server\filterscripts\ladmin2.pwn(1315) : error 017: undefined symbol "strtok"
F:\Fun and Games server\filterscripts\ladmin2.pwn(1315) : error 033: array must be indexed (variable "tmp")
F:\Fun and Games server\filterscripts\ladmin2.pwn(1322) : error 017: undefined symbol "strtok"
F:\Fun and Games server\filterscripts\ladmin2.pwn(1322) : error 033: array must be indexed (variable "tmp")
F:\Fun and Games server\filterscripts\ladmin2.pwn(1340) : error 017: undefined symbol "strtok"
F:\Fun and Games server\filterscripts\ladmin2.pwn(1340) : error 033: array must be indexed (variable "tmp")

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
http://pastebin.com/BVhyGd3H


help plz
Reply
#2

EDIT: Nevermind.
Reply
#3

when i put it said strtok is already defined
Reply
#4

First use that :
pawn Код:
//==============================================================================
COMMAND:rules(playerid,params[])
{
    new DialogText[1024];
    strcat(DialogText, "             The Server Rules\n");
    strcat(DialogText, "        The Admins Rules\n");
    strcat(DialogText, "(1)Admins Rule: Don't ban forever\n");
    strcat(DialogText, "(2)Admins Rule: Don't ban or kick or mute or freeze without reason\n");
    strcat(DialogText, "       The Players Rules\n");
    strcat(DialogText, "(1)Players Rule: Don't hack/cheat / (2)Players Rule: Don;t ad / (3)Players Rule: Don't Ask to be Admin /\n");
    strcat(DialogText, "(4)Players Rule: Don't say bad word / (4)Players Rule: Don't say bad words / (5)Player Rules: Don't Go To Admins House Only Admins\n");
    ShowPlayerDialog(playerid, 701, DIALOG_STYLE_MSGBOX, "Rules", DialogText, "OK", "");
    return 1;
}
//==============================================================================
COMMAND:cmds(playerid,params[])
{
    new DialogText[1024];
    strcat(DialogText, "Account: /login /register /stats\n");
    strcat(DialogText, "Chat: /pm /me /do\n");
    strcat(DialogText, "Basic: /rules /report\n");
    strcat(DialogText, "Teleports: /gs /lsa /lc /pipe /minigames\n");
    strcat(DialogText, "Other: /lol /emenu /call /kill /healme /gang /call /hangup /pickup /flip /afk afklist /back /flip /jobs /anims\n");
    strcat(DialogText, "Cars: /tunecar /cars /lock /unlock\n");
    strcat(DialogText, "(4)Players Rule: Don't say bad word / (4)Players Rule: Don't say bad words / (5)Player Rules: Don't Go To Admins House Only Admins\n");
    ShowPlayerDialog(playerid, 700, DIALOG_STYLE_MSGBOX, "Commands", DialogText, "OK", "");
    return 1;
}
If you don't use zcmd, try this, but i don't know, is that working :
pawn Код:
//==============================================================================
if(strcmp(cmdtext, "/rules", true) == 0)
{
    new DialogText[1024];
    strcat(DialogText, "             The Server Rules\n");
    strcat(DialogText, "        The Admins Rules\n");
    strcat(DialogText, "(1)Admins Rule: Don't ban forever\n");
    strcat(DialogText, "(2)Admins Rule: Don't ban or kick or mute or freeze without reason\n");
    strcat(DialogText, "       The Players Rules\n");
    strcat(DialogText, "(1)Players Rule: Don't hack/cheat / (2)Players Rule: Don;t ad / (3)Players Rule: Don't Ask to be Admin /\n");
    strcat(DialogText, "(4)Players Rule: Don't say bad word / (4)Players Rule: Don't say bad words / (5)Player Rules: Don't Go To Admins House Only Admins\n");
    ShowPlayerDialog(playerid, 701, DIALOG_STYLE_MSGBOX, "Rules", DialogText, "OK", "");
    return 1;
}
//==============================================================================
if(strcmp(cmdtext, "/cmds", true) == 0)
{
    new DialogText[1024];
    strcat(DialogText, "Account: /login /register /stats\n");
    strcat(DialogText, "Chat: /pm /me /do\n");
    strcat(DialogText, "Basic: /rules /report\n");
    strcat(DialogText, "Teleports: /gs /lsa /lc /pipe /minigames\n");
    strcat(DialogText, "Other: /lol /emenu /call /kill /healme /gang /call /hangup /pickup /flip /afk afklist /back /flip /jobs /anims\n");
    strcat(DialogText, "Cars: /tunecar /cars /lock /unlock\n");
    strcat(DialogText, "(4)Players Rule: Don't say bad word / (4)Players Rule: Don't say bad words / (5)Player Rules: Don't Go To Admins House Only Admins\n");
    ShowPlayerDialog(playerid, 700, DIALOG_STYLE_MSGBOX, "Commands", DialogText, "OK", "");
    return 1;
}
Reply
#5

never mind it work
Reply
#6

Quote:
Originally Posted by Gertin
Посмотреть сообщение
First use that :
pawn Код:
//==============================================================================
COMMAND:rules(playerid,params[])
{
    new DialogText[1024];
    strcat(DialogText, "             The Server Rules\n");
    strcat(DialogText, "        The Admins Rules\n");
    strcat(DialogText, "(1)Admins Rule: Don't ban forever\n");
    strcat(DialogText, "(2)Admins Rule: Don't ban or kick or mute or freeze without reason\n");
    strcat(DialogText, "       The Players Rules\n");
    strcat(DialogText, "(1)Players Rule: Don't hack/cheat / (2)Players Rule: Don;t ad / (3)Players Rule: Don't Ask to be Admin /\n");
    strcat(DialogText, "(4)Players Rule: Don't say bad word / (4)Players Rule: Don't say bad words / (5)Player Rules: Don't Go To Admins House Only Admins\n");
    ShowPlayerDialog(playerid, 701, DIALOG_STYLE_MSGBOX, "Rules", DialogText, "OK", "");
    return 1;
}
//==============================================================================
COMMAND:cmds(playerid,params[])
{
    new DialogText[1024];
    strcat(DialogText, "Account: /login /register /stats\n");
    strcat(DialogText, "Chat: /pm /me /do\n");
    strcat(DialogText, "Basic: /rules /report\n");
    strcat(DialogText, "Teleports: /gs /lsa /lc /pipe /minigames\n");
    strcat(DialogText, "Other: /lol /emenu /call /kill /healme /gang /call /hangup /pickup /flip /afk afklist /back /flip /jobs /anims\n");
    strcat(DialogText, "Cars: /tunecar /cars /lock /unlock\n");
    strcat(DialogText, "(4)Players Rule: Don't say bad word / (4)Players Rule: Don't say bad words / (5)Player Rules: Don't Go To Admins House Only Admins\n");
    ShowPlayerDialog(playerid, 700, DIALOG_STYLE_MSGBOX, "Commands", DialogText, "OK", "");
    return 1;
}
If you don't use zcmd, try this, but i don't know, is that working :
pawn Код:
//==============================================================================
if(strcmp(cmdtext, "/rules", true) == 0)
{
    new DialogText[1024];
    strcat(DialogText, "             The Server Rules\n");
    strcat(DialogText, "        The Admins Rules\n");
    strcat(DialogText, "(1)Admins Rule: Don't ban forever\n");
    strcat(DialogText, "(2)Admins Rule: Don't ban or kick or mute or freeze without reason\n");
    strcat(DialogText, "       The Players Rules\n");
    strcat(DialogText, "(1)Players Rule: Don't hack/cheat / (2)Players Rule: Don;t ad / (3)Players Rule: Don't Ask to be Admin /\n");
    strcat(DialogText, "(4)Players Rule: Don't say bad word / (4)Players Rule: Don't say bad words / (5)Player Rules: Don't Go To Admins House Only Admins\n");
    ShowPlayerDialog(playerid, 701, DIALOG_STYLE_MSGBOX, "Rules", DialogText, "OK", "");
    return 1;
}
//==============================================================================
if(strcmp(cmdtext, "/cmds", true) == 0)
{
    new DialogText[1024];
    strcat(DialogText, "Account: /login /register /stats\n");
    strcat(DialogText, "Chat: /pm /me /do\n");
    strcat(DialogText, "Basic: /rules /report\n");
    strcat(DialogText, "Teleports: /gs /lsa /lc /pipe /minigames\n");
    strcat(DialogText, "Other: /lol /emenu /call /kill /healme /gang /call /hangup /pickup /flip /afk afklist /back /flip /jobs /anims\n");
    strcat(DialogText, "Cars: /tunecar /cars /lock /unlock\n");
    strcat(DialogText, "(4)Players Rule: Don't say bad word / (4)Players Rule: Don't say bad words / (5)Player Rules: Don't Go To Admins House Only Admins\n");
    ShowPlayerDialog(playerid, 700, DIALOG_STYLE_MSGBOX, "Commands", DialogText, "OK", "");
    return 1;
}
thnx
Reply
#7

what about ladmin fs and jobs system
Reply
#8

Try this :
pawn Код:
if(strcmp(cmd, "/bigfall", true) == 0) {
        if(IsPlayerInAnyVehicle(playerid)) {
            new Ang;
            new Float:X;
            new Float:Y;
            new Float:Z;
            new VehicleID;
            GetPlayerPos(playerid, X, Y, Z);
            VehicleID = GetPlayerVehicleID(playerid);
            SetVehiclePos(VehicleID, X, Y, Z + 800.00);
            SetPlayerFacingAngle(playerid,Ang);
            GivePlayerWeapon(playerid,46,1);
            return 1;
        }
        else
        {
            new Ang;
            new Float:X;
            new Float:Y;
            new Float:Z;
            GetPlayerPos(playerid, X, Y, Z);
            SetPlayerPos(playerid, X, Y, Z + 800.00);
            SetPlayerFacingAngle(playerid,Ang);
            GivePlayerWeapon(playerid,46,1);
            GameTextForPlayer(playerid, "~w~Weeeeeeeeeeeeeeeeee!!",8000,5);
            return 1;
        }
    }
Reply
#9

Quote:
Originally Posted by Gertin
Посмотреть сообщение
Try this :
pawn Код:
if(strcmp(cmd, "/bigfall", true) == 0) {
        if(IsPlayerInAnyVehicle(playerid)) {
            new Ang;
            new Float:X;
            new Float:Y;
            new Float:Z;
            new VehicleID;
            GetPlayerPos(playerid, X, Y, Z);
            VehicleID = GetPlayerVehicleID(playerid);
            SetVehiclePos(VehicleID, X, Y, Z + 800.00);
            SetPlayerFacingAngle(playerid,Ang);
            GivePlayerWeapon(playerid,46,1);
            return 1;
        }
        else
        {
            new Ang;
            new Float:X;
            new Float:Y;
            new Float:Z;
            GetPlayerPos(playerid, X, Y, Z);
            SetPlayerPos(playerid, X, Y, Z + 800.00);
            SetPlayerFacingAngle(playerid,Ang);
            GivePlayerWeapon(playerid,46,1);
            GameTextForPlayer(playerid, "~w~Weeeeeeeeeeeeeeeeee!!",8000,5);
            return 1;
        }
    }
thnx it work
but what about jobs system i wanna but the job system in dialog and what the wrong with this ladmin system
Reply
#10

Mhh, with that lux admin . Add there
pawn Код:
forward OnPlayerPrivmsg(playerid, recieverid, text[]);
and i dont have errors. You have all these includes in pawno/include ?
Код:
#include <dutils>
#include <lethaldudb2>
#include <core>
#include <float>
And with job thing, watch how i make KLICK HERE

Make like there .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)