need help with a command im trying to write
#1

pawn Код:
if(strcmp( cmd, "/cmds", true ) == 0 )
    {
    ShowPlayerDialog(playerid, DIAREGLAS, DIALOG_STYLE_MSGBOX, "Commands", "{FF0000}/v-Spawn a vehicle of your choice.\n{FF0000}/w-List of Weapons.\n{FF0000}/pm [ID][TEXT]- to PM a player.\n{FF0000}/change-hide the blue bar at bottom of screen.\n{FF0000}/FLY [0-1]- 0(off) 1(on).\n{FF0000}/infernus-Spawn an infernus.\n{FF0000}/PCJ- Spawn a PCJ-600.\n{FF0000}/CHANGENAME- Change name in server without having to leave.\n{FF0000}/TIME-Switch to Day or night.\n{FF0000}/PJY-Attach objects to your player.\n{FF0000}/ACTIONS- list of animations.\n{FF0000}/MUSIC-Listen to music.\n{FF0000}/MINIGAMES-Do minigames.\n{FF0000}/COLORS-Change color of username on CHAT.","OK","CLOSE");
            return 1;
        }

it keeps saying pawn compiler library has stopped working
Reply
#2

Can you wrap [pawn] tags around it [ /pawn].
Reply
#3

what
Reply
#4

[/pawn]if(strcmp( cmd, "/cmds", true ) == 0 )
{
ShowPlayerDialog(playerid, DIAREGLAS, DIALOG_STYLE_MSGBOX, "Commands", "{FF0000}/v-Spawn a vehicle of your choice.\n{FF0000}/w-List of Weapons.\n{FF0000}/pm [ID][TEXT]- to PM a player.\n{FF0000}/change-hide the blue bar at bottom of screen.\n{FF0000}/FLY [0-1]- 0(off) 1(on).\n{FF0000}/infernus-Spawn an infernus.\n{FF0000}/PCJ- Spawn a PCJ-600.\n{FF0000}/CHANGENAME- Change name in server without having to leave.\n{FF0000}/TIME-Switch to Day or night.\n{FF0000}/PJY-Attach objects to your player.\n{FF0000}/ACTIONS- list of animations.\n{FF0000}/MUSIC-Listen to music.\n{FF0000}/MINIGAMES-Do minigames.\n{FF0000}/COLORS-Change color of username on CHAT.","OK","CLOSE");
return 1;
}[/pawn]
Reply
#5

It's pretty simple what I said.

In front of the command, write [pawn]

At the end, write: [ /pawn] < Without the space.
Reply
#6

pawn Код:
if(strcmp( cmd, "/cmds", true ) == 0 )
{
ShowPlayerDialog(playerid, DIAREGLAS, DIALOG_STYLE_MSGBOX, "Commands", "{FF0000}/v-Spawn a vehicle of your choice.\n{FF0000}/w-List of Weapons.\n{FF0000}/pm [ID][TEXT]- to PM a player.\n{FF0000}/change-hide the blue bar at bottom of screen.\n{FF0000}/FLY [0-1]- 0(off) 1(on).\n{FF0000}/infernus-Spawn an infernus.\n{FF0000}/PCJ- Spawn a PCJ-600.\n{FF0000}/CHANGENAME- Change name in server without having to leave.\n{FF0000}/TIME-Switch to Day or night.\n{FF0000}/PJY-Attach objects to your player.\n{FF0000}/ACTIONS- list of animations.\n{FF0000}/MUSIC-Listen to music.\n{FF0000}/MINIGAMES-Do minigames.\n{FF0000}/COLORS-Change color of username on CHAT.","OK","CLOSE");
return 1;
}
Reply
#7

pawn Код:
if(strcmp( cmd, "/cmds", true ) == 0 )
{
ShowPlayerDialog(playerid, DIAREGLAS, DIALOG_STYLE_MSGBOX, "Commands", "{FF0000}/v-Spawn a vehicle of your choice.\n{FF0000}/w-List of Weapons.\n{FF0000}/pm [ID][TEXT]- to PM a player.\n{FF0000}/change-hide the blue bar at bottom of screen.\n{FF0000}/FLY [0-1]- 0(off) 1(on).\n{FF0000}/infernus-Spawn an infernus.\n{FF0000}/PCJ- Spawn a PCJ-600.\n{FF0000}/CHANGENAME- Change name in server without having to leave.\n{FF0000}/TIME-Switch to Day or night.\n{FF0000}/PJY-Attach objects to your player.\n{FF0000}/ACTIONS- list of animations.\n{FF0000}/MUSIC-Listen to music.\n{FF0000}/MINIGAMES-Do minigames.\n{FF0000}/COLORS-Change color of username on CHAT.","OK","CLOSE");
return 1;
}
Well go from here.
Reply
#8

Do you struggle at reading or something? Also, there is an edit button.

Use it. Remove the space between the last [/pawn].

Edit: Thank you mate.


Also, what is the dialog ID define?

Plus, when the compiler is compiling, does it show errors or just "This program is not responding"?
Reply
#9

pawn Код:
if(strcmp( cmd, "/cmds", true ) == 0 )
{
ShowPlayerDialog(playerid, DIAREGLAS, DIALOG_STYLE_MSGBOX, "Commands", "{FF0000}/v-Spawn a vehicle of your choice.\n{FF0000}/w-List of Weapons.\n{FF0000}/pm [ID][TEXT]- to PM a player.\n{FF0000}/change-hide the blue bar at bottom of screen.\n{FF0000}/FLY [0-1]- 0(off) 1(on).\n{FF0000}/infernus-Spawn an infernus.\n{FF0000}/PCJ- Spawn a PCJ-600.\n{FF0000}/CHANGENAME- Change name in server without having to leave.\n{FF0000}/TIME-Switch to Day or night.\n{FF0000}/PJY-Attach objects to your player.\n{FF0000}/ACTIONS- list of animations.\n{FF0000}/MUSIC-Listen to music.\n{FF0000}/MINIGAMES-Do minigames.\n{FF0000}/COLORS-Change color of username on CHAT.","OK","CLOSE");
return 1;
}
Reply
#10

newbies...

By the way, your dialog lines are too long. You will get
Код:
error 075: input line too long (after substitutions)
See this (an example)
http://forum.sa-mp.com/showpost.php?...15&postcount=2
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)