Help Help! - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help Help! (
/showthread.php?tid=250568)
Help Help! -
Shoaib - 23.04.2011
Quote:
dcmd(lotto,5, cmdtext);
Line 141
|
Quote:
C:\Users\Hamza Ali\Desktop\[XTC]Man Server\filterscripts\lotto.pwn(141) : error 017: undefined symbol "dcmd"
C:\Users\Hamza Ali\Desktop\[XTC]Man Server\filterscripts\lotto.pwn(312) : warning 203: symbol is never used: "dcmd_lotto"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
|
Help!Please Thanks
Re: Help Help! -
Sascha - 23.04.2011
lol
pawn Код:
dcmd_lotto(playerid, params[])
{
#pragma unused params
return 1;
}
and no clue if you need that or if the first thing already fixes the first bug:
pawn Код:
#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
Re: Help Help! -
Shoaib - 23.04.2011
dont work give me more erros
Re: Help Help! -
Laronic - 23.04.2011
Quote:
Originally Posted by Shoaib
dont work give me more erros
|
Show us the errors?
EDIT: @ the post v i meant the new errors it gave you
Re: Help Help! -
Shoaib - 23.04.2011
There IN The top fix the top 1sn and send me please thanks
Re: Help Help! -
xir - 23.04.2011
Add this
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(lotto, 5, cmdtext);
return 0;
}
// and then this
dcmd_lotto(playerid, params[])
{
#pragma unused params
return 1;
}
Re: Help Help! -
Shoaib - 23.04.2011
i tryed!
Re: Help Help! -
Shoaib - 23.04.2011
help please fast
Re: Help Help! -
xir - 23.04.2011
Try to add this right under includes
pawn Код:
#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
Re: Help Help! -
Shoaib - 23.04.2011
same problam! help fast pleaseeeeeeeeeeeee