Help with a zcmd command(Unknown)
#1

hi the problem is simple : whene i go in game , and try the command : /shop it says "unknown command".
My "shop command:
pawn Code:
CMD:Shop(playerid, params[])
{
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Choose a weapon in the list to buy it :", "colt45 ($1800)\nDeagle ($2500)\nM4 ($4500)\nAK47 ($3500)\nMotolov(not avaible now) ($0)", "Purchase", "Cancel");
    return 1;
}
i put it in the end of the GM . i hope you help me ...

RESOLVED
Reply
#2

try put under CMD:
#pragma unused params
Reply
#3

pawn Code:
CMD:Shop(playerid, params[])
{
    #pragma unused params
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Choose a weapon in the list to buy it :", "colt45 ($1800)\nDeagle ($2500)\nM4 ($4500)\nAK47 ($3500)\nMotolov(not avaible now) ($0)", "Purchase", "Cancel");
    return 1;
}
Reply
#4

Change the Shop to shop.
pawn Code:
CMD:shop(playerid, params[])
{
    if( isnull( params ) )
        return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Choose a weapon in the list to buy it :", "colt45 ($1800)\nDeagle ($2500)\nM4 ($4500)\nAK47 ($3500)\nMotolov(not avaible now) ($0)", "Purchase", "Cancel");
    return 1;
}
Reply
#5

i added it , still not working , this is my server.cfg:
Code:
echo Executing Server Config...
lanmode 0
rcon_password mypass
maxplayers 2
port 7777
hostname Los Angelos Team Deathmatch[EN]
gamemode0 LATDM 1
filterscripts baseaf gl_actions gl_property gl_realtime gl_mapicon 
announce 0
plugins 
query 1
weburl www.sa-mp.com
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 0
logtimeformat [%H:%M:%S]
Reply
#6

The server.cfg file has nothing to do with the ZCMD.
Reply
#7

Quote:
Originally Posted by Dwane
View Post
Change the Shop to shop.
pawn Code:
CMD:shop(playerid, params[])
{
    if( isnull( params ) )
        return ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Choose a weapon in the list to buy it :", "colt45 ($1800)\nDeagle ($2500)\nM4 ($4500)\nAK47 ($3500)\nMotolov(not avaible now) ($0)", "Purchase", "Cancel");
    return 1;
}
Working fine thanks ! and thank you all for trying to help me
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)