/shop only working in FS - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /shop only working in FS (
/showthread.php?tid=308890)
/shop only working in FS -
geerdinho8 - 05.01.2012
I made an /shop command, tested it in a filterscript and it worked
Now i placed it in a GM and it didnt work at all
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/shop", true))
{
ShowPlayerDialog(playerid,55,DIALOG_STYLE_LIST,""COL_ORANGE"Shop","Vehicles\nWeapons","Select", "Cancel");
SendClientMessage(playerid,red,"If the shop doesn't pop up, it is unavaible for this mission!");
return 1;
}
return 0;
}
Re: /shop only working in FS -
Shoulen - 05.01.2012
Try
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/shop", true))
{
ShowPlayerDialog(playerid,55,DIALOG_STYLE_LIST,""COL_ORANGE"Shop","Vehicles\r\nWeapons","Select", "Cancel");
SendClientMessage(playerid,red,"If the shop doesn't pop up, it is unavaible for this mission!");
return 1;
}
return 0;
}
- Shoulen
Re: /shop only working in FS -
geerdinho8 - 05.01.2012
Dude, you just copied my code?
Re: /shop only working in FS -
Shoulen - 05.01.2012
Where yours says:
"Vehicles\nWeapons"
Mine says:
"Vehicles\r\nWeapons"
Also, are you sure DialogID 55 is not already taken in your GM?
Re: /shop only working in FS -
geerdinho8 - 05.01.2012
Yes, and also:
The message at /shop doesn't shop up
I think the problem is at the return 0;
Re: /shop only working in FS -
Shoulen - 05.01.2012
I don't see why.
Re: /shop only working in FS -
geerdinho8 - 05.01.2012
hmm strange, it works in my FS, but when i put it in my GM it doenst..
Re: /shop only working in FS -
geerdinho8 - 06.01.2012
BUMP
Re: /shop only working in FS -
geerdinho8 - 08.01.2012
BUMP2
Re: /shop only working in FS -
geerdinho8 - 09.01.2012
BUMP