Script Error - 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: Script Error (
/showthread.php?tid=396393)
Script Error -
Goldino - 30.11.2012
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!!!
Re: Script Error -
Windrush - 30.11.2012
did you add this On
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
Re: Script Error -
Goldino - 30.11.2012
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;
}
Re: Script Error -
Windrush - 30.11.2012
use ZCMD If You Can't Fix That
Re: Script Error -
Goldino - 30.11.2012
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.
Re: Script Error -
Windrush - 30.11.2012
What Is The Code In Line 6277
Re: Script Error -
Goldino - 30.11.2012
Код:
if ( cmdtext[ 3 ] != ' ' || !cmdtext[ 4 ] )
Re: Script Error -
Windrush - 30.11.2012
btw Give me The Files And I Will Fix It For You
Re: Script Error -
Goldino - 30.11.2012
what do u mean
Re: Script Error -
Windrush - 30.11.2012
Paste All Your Codes In Pastebin.com
Then Give me the link