Help with a zcmd command(Unknown) - 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: Help with a zcmd command(Unknown) (
/showthread.php?tid=315833)
Help with a zcmd command(Unknown) -
ServerScripter - 04.02.2012
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
AW: Help with a zcmd command(Unknown) -
Tigerkiller - 04.02.2012
try put under CMD:
#pragma unused params
Re: Help with a zcmd command(Unknown) -
Fires - 04.02.2012
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;
}
Re: Help with a zcmd command(Unknown) -
Konstantinos - 04.02.2012
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;
}
Re: Help with a zcmd command(Unknown) -
ServerScripter - 04.02.2012
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]
Re: Help with a zcmd command(Unknown) -
Konstantinos - 04.02.2012
The server.cfg file has nothing to do with the ZCMD.
Re: Help with a zcmd command(Unknown) -
ServerScripter - 04.02.2012
Quote:
Originally Posted by Dwane
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