Help why dosent work? - 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 why dosent work? (
/showthread.php?tid=491216)
Help why dosent work? -
yuvraj201 - 29.01.2014
pawn Код:
cmdhelloplayerid
{
SendClientMessage(playerid, COLOR_WHITE, "You wrote hello.");
r0
}
Not sending anything to the player
Re: Help why dosent work? -
Wizz123 - 29.01.2014
whatttt the fuck is that command proccessor lol?
And i guess r0 is return 0; you need to return 1;
Re: Help why dosent work? -
EmilLykke - 29.01.2014
Are you using ZCMD or?
Re: Help why dosent work? -
yuvraj201 - 29.01.2014
Quote:
Originally Posted by Wizz123
whatttt the fuck is that command proccessor lol?
And i guess r0 is return 0; you need to return 1;
|
Thanks! worked rep and i got it from a friend
Re: Help why dosent work? -
SwisherSweet - 29.01.2014
let me help u out a bit, lmfao
pawn Код:
CMD:hello(playerid, params[])
{
SendClientMessage(playerid, COLOR_WHITE, "You wrote hello.");
return 1;
}
Let me explain something to you, My guess is your trying to use ZCMD
put this #include <zcmd> at top.
Now whenever you want to make a cmd use this
pawn Код:
CMD:yourcmdhere(playerid, params[])
{
//Your code here
return 1;
}
This basically creates the Commands,
Put your code in where I put "//Your code here"
You welcome
Re: Help why dosent work? -
DerickClark - 29.01.2014
The Current code.
pawn Код:
CMD:hello(playerid, params[])
{
SendClientMessage(playerid, COLOR_WHITE, "You wrote hello.");
return 1;
}
Re: Help why dosent work? -
yuvraj201 - 29.01.2014
No thanks guys Wizz123 helped me i have a custom made command proccessor not zcmd.