need help with a command im trying to write -
Zach7 - 06.07.2012
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
Re: need help with a command im trying to write -
iGetty - 06.07.2012
Can you wrap [pawn] tags around it [ /pawn].
Re: need help with a command im trying to write -
Zach7 - 06.07.2012
what
Re: need help with a command im trying to write -
Zach7 - 06.07.2012
[/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]
Re: need help with a command im trying to write -
iGetty - 06.07.2012
It's pretty simple what I said.
In front of the command, write [pawn]
At the end, write: [ /pawn] < Without the space.
Re: need help with a command im trying to write -
Zach7 - 06.07.2012
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;
}
Re: need help with a command im trying to write -
Steven82 - 06.07.2012
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.
Re: need help with a command im trying to write -
iGetty - 06.07.2012
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"?
Re: need help with a command im trying to write -
Zach7 - 06.07.2012
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;
}
Re: need help with a command im trying to write -
newbienoob - 06.07.2012

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