/shop only working in FS
#1

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;
}
Reply
#2

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
Reply
#3

Dude, you just copied my code?
Reply
#4

Where yours says:
"Vehicles\nWeapons"

Mine says:
"Vehicles\r\nWeapons"

Also, are you sure DialogID 55 is not already taken in your GM?
Reply
#5

Yes, and also:

The message at /shop doesn't shop up

I think the problem is at the return 0;
Reply
#6

I don't see why.
Reply
#7

hmm strange, it works in my FS, but when i put it in my GM it doenst..
Reply
#8

BUMP
Reply
#9

BUMP2
Reply
#10

BUMP
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)