defines - 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: defines (
/showthread.php?tid=166142)
defines -
Jamal' - 07.08.2010
Hi i got that errors in my script
PHP Code:
C:\Users\hpi\Desktop\SCRIPTING\registersystem.pwn(128) : error 017: undefined symbol "dcmd"
C:\Users\hpi\Desktop\SCRIPTING\registersystem.pwn(128) : warning 215: expression has no effect
C:\Users\hpi\Desktop\SCRIPTING\registersystem.pwn(128) : warning 215: expression has no effect
C:\Users\hpi\Desktop\SCRIPTING\registersystem.pwn(128) : error 001: expected token: ";", but found ")"
C:\Users\hpi\Desktop\SCRIPTING\registersystem.pwn(128) : error 029: invalid expression, assumed zero
C:\Users\hpi\Desktop\SCRIPTING\registersystem.pwn(128) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Currently i got that defines
PHP Code:
#include <a_samp>
#include <Dini>
#include <dudb>
#pragma unused ret_memcpy
#pragma unused PlayerInfo
#define COLOR_GREEN 0x21DD00FF
#define dcmd[8]
#define register
My line error its here
PHP Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(register, 8, cmdtext);
dcmd(login, 5, cmdtext);
dcmd_register(playerid, params[])
{
someone know what is wrong or left?
Re: defines -
ViruZZzZ_ChiLLL - 07.08.2010
Please read this on how to use dcmd =)
https://sampforum.blast.hk/showthread.php?tid=165229
Also, don't forget to return 0 on every OnPlayerCommandText callback.
Re: defines -
willsuckformoney - 07.08.2010
uh is your dcmd_register(playerid,params[]) under onplayercommandtext?
Re: defines -
Jamal' - 07.08.2010
yes '-- wheere i need put it? lol i will read the web page
Re: defines -
Kar - 07.08.2010
public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(register, 8, cmdtext);
dcmd(login, 5, cmdtext);
dcmd_register(playerid, params[])
return 0;
}
Re: defines -
willsuckformoney - 07.08.2010
Quote:
Originally Posted by Jamal'
yes '-- wheere i need put it? lol i will read the web page
|
dcmd_register(playerid,params[])
needs be under onplayercommandtext not inside the
{
return 1;
}
Re: defines -
Jamal' - 07.08.2010
Thanks now it ok ..... but i get other errors =|
Re: defines -
willsuckformoney - 07.08.2010
post please
Re: defines -
Luis- - 07.08.2010
What are your other errors?
Re: defines -
Jamal' - 07.08.2010
Quote:
C:\Users\hpi\Desktop\SCRIPTING\registersystem.pwn( 129) : error 017: undefined symbol "dcmd"
C:\Users\hpi\Desktop\SCRIPTING\registersystem.pwn( 130) : error 017: undefined symbol "dcmd"
C:\Users\hpi\Desktop\SCRIPTING\registersystem.pwn( 131) : error 017: undefined symbol "dcmd_register"
C:\Users\hpi\Desktop\SCRIPTING\registersystem.pwn( 131) : error 029: invalid expression, assumed zero
C:\Users\hpi\Desktop\SCRIPTING\registersystem.pwn( 131) : error 029: invalid expression, assumed zero
C:\Users\hpi\Desktop\SCRIPTING\registersystem.pwn( 131) : fatal error 107: too many error messages on one line
|
public OnPlayerCommandText(playerid, cmdtext[])
{
{
dcmd(register, 8, cmdtext);
dcmd(login, 5, cmdtext);
dcmd_register(playerid, params[])
return 0;
}
{
ps: i define "params" what is wrong now?