Script Error
#1

Hey guys
I'm using LuxAdmin, and I added this to the script
Код:
dcmd_ask(playerid,params[])
{
    if ( cmdtext[ 3 ] != ' ' || !cmdtext[ 4 ] )
    return SendClientMessage( playerid, -1, "USAGE: {F3FF02}/Ask {FFA1A1}(Question)" );
    new pName[MAX_PLAYER_NAME],string[128];
    GetPlayerName(playerid,pName,sizeof(pName));
    format(string,sizeof(string),"[Question] %s : {C77D87}%s",pName,cmdtext[3]);
    SendClientMessageToAll(-1,string);
}
but this comes up in the compiler....
Код:
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\GTA SA Server\filterscripts\LuxAdmin.pwn(12206) : warning 203: symbol is never used: "dcmd_ask"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
I can' figure out how to fix it. Please help me!!!
Reply
#2

did you add this On
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
pawn Код:
dcmd(ask, 3, cmdtext);
Reply
#3

I added it with the rest of the command which are like at the top of the script

here is the first command for an example...

//================================================== ============================
//-------------------------------------------------
// COMMANDS
//-------------------------------------------------
//================================================== ============================

Код:
#if USE_DIALOGS == true
dcmd_CMD_REGISTER(playerid,params[])
{
    #pragma unused params
    
	if (AccInfo[playerid][LoggedIn] == 1)
	return SendClientMessage(playerid,red,"ERROR: You are already registered and logged in.");
	
	if (udb_Exists(PlayerName2(playerid)))
	return SendClientMessage(playerid,red,"ERROR: This account already exists") &&
    SendClientMessage(playerid,orange,"Login to access your account ('/"#LoginCommand"').");
    
	new rs2tring[256];
	format(rs2tring,256,"Register new Account: '%s'\n\nEnter the password to Register your Account:",pName(playerid));
	ShowPlayerDialog(playerid,DIALOGID+66,DIALOG_STYLE_INPUT,"Register Account",rs2tring,"Register","Quit");
	return 1;
}
Reply
#4

use ZCMD If You Can't Fix That
Reply
#5

oops I made a mistake...

I didn't add that line and I didn't read what you said properly.

I added it and this came up as a error....

Код:
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\GTA SA Server\filterscripts\LuxAdmin.pwn(6277) : error 017: undefined symbol "cmdtext"
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\GTA SA Server\filterscripts\LuxAdmin.pwn(6277) : warning 215: expression has no effect
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\GTA SA Server\filterscripts\LuxAdmin.pwn(6277) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\GTA SA Server\filterscripts\LuxAdmin.pwn(6277) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Danny.YOUR-E6F02835AE\My Documents\GTA SA Server\filterscripts\LuxAdmin.pwn(6277) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#6

What Is The Code In Line 6277
Reply
#7

Код:
if ( cmdtext[ 3 ] != ' ' || !cmdtext[ 4 ] )
Reply
#8

btw Give me The Files And I Will Fix It For You
Reply
#9

what do u mean
Reply
#10

Paste All Your Codes In Pastebin.com
Then Give me the link
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)