Need some help!
#1

pawn Код:
if (strcmp(cmdtext, "/cmds", true) == 0)
    {
        ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Commands", "/kill - Suicide\n/car - Spawns a car\n/tcar - Spawns a pre-tuned car\n/nos - Add nitrous on your car\n/xnos - Remove nitrous from your car\n/god, /godcar - Make you or the car god\n/teles - Teles", "OK","OK");
        return 1;
    }
   
    if (strcmp(cmdtext, "/teles", true) == 0)
    {
        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Teleports", "Places: /ls, /sf, /lsair, /sfair, /lv, /lvair, /beach\nParkour: /pk1, /hayclimb\nJumps: /lsj\nMisc: /partyhouse, /carpark", "OK", "OK");
        return 1;
    }
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(response)
    {
        switch(dialogid)
        {
            case 1:
                {
                    SendClientMessage(playerid, 0xFFFFFFAA, "You've read the /cmds.");
                    return 1;
                }
            case 2:
                {
                    SendClientMessage(playerid, 0xFFFFFFAA, "You've read the /rules.");
                    return 1;
                }
        }
    }
    return 1;
}
vvv It happens like this after I compile it. vvv
Код:
Script[gamemodes/racerevolution.amx]: Run time error 19: "File or function is not found"
I don't know what's wrong with the response. I need some pros to help me as my members are complaining about the gamemode name is "Unknown".
Reply
#2

should be case 0, then case 1

not 1,2

with the error ur missing plugin install in folder and plugins line in server.cfg
Reply
#3

You're either missing a plugin or the main function in your script

pawn Код:
main() {}
Reply
#4

Alright, I will try it.
Reply
#5

I solved this error yesterday on my vps....I was missing plugins....And remember if u are hosting on a linux based os then u shud name the plugins fully like streamer.so and etc.......
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)