defines
#1

Hi i got that errors in my script

PHP Code:
C:\Users\hpi\Desktop\SCRIPTING\registersystem.pwn(128) : error 017undefined symbol "dcmd"
C:\Users\hpi\Desktop\SCRIPTING\registersystem.pwn(128) : warning 215expression has no effect
C
:\Users\hpi\Desktop\SCRIPTING\registersystem.pwn(128) : warning 215expression has no effect
C
:\Users\hpi\Desktop\SCRIPTING\registersystem.pwn(128) : error 001expected token";"but found ")"
C:\Users\hpi\Desktop\SCRIPTING\registersystem.pwn(128) : error 029invalid expressionassumed zero
C
:\Users\hpi\Desktop\SCRIPTING\registersystem.pwn(128) : fatal error 107too many error messages on one line
Compilation aborted
.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB 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(playeridcmdtext[])
{
    
dcmd(register8cmdtext);
    
dcmd(login5cmdtext);
    
dcmd_register(playeridparams[])

someone know what is wrong or left?
Reply
#2

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.
Reply
#3

uh is your dcmd_register(playerid,params[]) under onplayercommandtext?
Reply
#4

yes '-- wheere i need put it? lol i will read the web page
Reply
#5

public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(register, 8, cmdtext);
dcmd(login, 5, cmdtext);
dcmd_register(playerid, params[])
return 0;
}
Reply
#6

Quote:
Originally Posted by Jamal'
View Post
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;
}
Reply
#7

Thanks now it ok ..... but i get other errors =|
Reply
#8

post please
Reply
#9

What are your other errors?
Reply
#10

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?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)