SA-MP Forums Archive
6 Errors (+REP) - 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: 6 Errors (+REP) (/showthread.php?tid=513092)



6 Errors (+REP) - Spartaaaaa - 14.05.2014

Code:
C:\Users\Khan_vb\Desktop\Tools & etc\XRS\filterscripts\LuxAdmin.pwn(508) : error 017: undefined symbol "hooked"
C:\Users\Khan_vb\Desktop\Tools & etc\XRS\filterscripts\LuxAdmin.pwn(508) : error 029: invalid expression, assumed zero
C:\Users\Khan_vb\Desktop\Tools & etc\XRS\filterscripts\LuxAdmin.pwn(1912) : error 017: undefined symbol "hooked"
C:\Users\Khan_vb\Desktop\Tools & etc\XRS\filterscripts\LuxAdmin.pwn(1912) : error 029: invalid expression, assumed zero
C:\Users\Khan_vb\Desktop\Tools & etc\XRS\filterscripts\LuxAdmin.pwn(7051) : error 017: undefined symbol "hooked"
C:\Users\Khan_vb\Desktop\Tools & etc\XRS\filterscripts\LuxAdmin.pwn(7051) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Errors.
Code:
	for(new i = 0; i <= MAX_PLAYERS; i++)
	{
		if(IsPlayerConnected(i))
		{
   OnPlayerConnect(i);
		}
	}
Code:
CMD:changename(playerid, params[])
{
	if(AccInfo[playerid][pVip] > 2)
	{
	    new NpName[MAX_PLAYER_NAME], stringf[128];
	    //----------------------------------------------------------------------
	    if(sscanf(params, "s[24]", NpName)) return
		SendClientMessage(playerid, orange, "Usage: /cmyname [New Nickname]");
		//----------------------------------------------------------------------
	    else
	    {
	        SetPlayerName(playerid, NpName);
	        format(stringf, sizeof(stringf), "You have Successfully Changed your nickname to {11FF00}%s!", NpName);
	        SendClientMessage(playerid, orange, stringf);
	        return OnPlayerConnect(playerid);
	    }
    }
    else return SendClientMessage(playerid, red, "ERROR: You must be VIP Level 2 to use this command!");
}
Code:
CMD:setname(playerid,params[])
{
	if(AccInfo[playerid][Level] >= 4 || IsPlayerAdmin(playerid))
	{
	    new player1, tmp2[MAX_PLAYER_NAME], string[128];
	    //----------------------------------------------------------------------
	    if(sscanf(params, "us[24]", player1, tmp2)) return
		SendClientMessage(playerid, LIGHTBLUE2, "Usage: /setname [PlayerID] [NewName]") &&
		SendClientMessage(playerid, orange, "Function: Will set Name of specified player!");
		//----------------------------------------------------------------------
		if(strlen(tmp2) < 3 || strlen(tmp2) > MAX_PLAYER_NAME) return
		SendClientMessage(playerid,red,"ERROR: Incorrect Name Length");
		//----------------------------------------------------------------------
		if(AccInfo[player1][Level] == ServerInfo[MaxAdminLevel] && AccInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return
		SendClientMessage(playerid,red,"ERROR: You cannot use this command on this admin");
		//----------------------------------------------------------------------
        if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID)
		{
			SendCommandToAdmins(playerid,"SetName");
			format(string, sizeof(string), "|- You have set \"%s's\" Name to \"%s\" -|", pName(player1), tmp2);
			SendClientMessage(playerid,BlueMsg,string);
			if(player1 != playerid)
			{
				format(string,sizeof(string),"|- Administrator \"%s\" has set your Name to \"%s\" -|", pName(playerid), tmp2);
				SendClientMessage(player1,blue,string);
			}
			SetPlayerName(player1, tmp2);
   			return OnPlayerConnect(player1);
	    }
		else return ErrorMessages(playerid, 2);
	}
	else return ErrorMessages(playerid, 1);
}



Re: 6 Errors (+REP) - daemon3304 - 14.05.2014

give me all the script in private message and i will try to fix it


Re: 6 Errors (+REP) - nilanjay - 14.05.2014

Have you followed all the instructions return on the original thread?

https://sampforum.blast.hk/showthread.php?tid=120724


Re: 6 Errors (+REP) - Spartaaaaa - 14.05.2014

bump


Re: 6 Errors (+REP) - Salman1700 - 14.05.2014

Code:
"CMD:changename"(playerid, params[])
{
	if(AccInfo[playerid][pVip] > 2)
	{
	    new NpName[MAX_PLAYER_NAME], stringf[128];
	    //----------------------------------------------------------------------
	    if(sscanf(params, "s[24]", NpName)) return
		SendClientMessage(playerid, orange, "Usage: /cmyname [New Nickname]");
		//----------------------------------------------------------------------
	    else
	    {
	        SetPlayerName(playerid, NpName);
	        format(stringf, sizeof(stringf), "You have Successfully Changed your nickname to {11FF00}%s!", NpName);
	        SendClientMessage(playerid, orange, stringf);
	        return OnPlayerConnect(playerid);
	    }
    }
    else return SendClientMessage(playerid, red, "ERROR: You must be VIP Level 2 to use this command!");
}



Re: 6 Errors (+REP) - Spartaaaaa - 14.05.2014

Still 6 Errors.


AW: 6 Errors (+REP) - Macronix - 14.05.2014

Are these really the lines of the errors? Because i can't find the word or expression "hooked" in your commands..
Can you give the exact lines?


Re: 6 Errors (+REP) - Spartaaaaa - 15.05.2014

pawn Code:
for(new i = 0; i <= MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
   OnPlayerConnect(i); //Error line
        }
    }
    //--------------------------------------------------------------------------
    for(new i = 1; i < MAX_REPORTS; i++)
    {
        Reports[i] = "No Reports Found";
    }
    //--------------------------------------------------------------------------

pawn Code:
CMD:changename(playerid, params[])
{
    if(AccInfo[playerid][pVip] > 2)
    {
        new NpName[MAX_PLAYER_NAME], stringf[128];
        //----------------------------------------------------------------------
        if(sscanf(params, "s[24]", NpName)) return
        SendClientMessage(playerid, orange, "Usage: /cmyname [New Nickname]");
        //----------------------------------------------------------------------
        else
        {
            SetPlayerName(playerid, NpName);
            format(stringf, sizeof(stringf), "You have Successfully Changed your nickname to {11FF00}%s!", NpName);
            SendClientMessage(playerid, orange, stringf);
            return OnPlayerConnect(playerid); //Error line
        }
    }
    else return SendClientMessage(playerid, red, "ERROR: You must be VIP Level 2 to use this command!");

pawn Code:
CMD:setname(playerid,params[])
{
    if(AccInfo[playerid][Level] >= 4 || IsPlayerAdmin(playerid))
    {
        new player1, tmp2[MAX_PLAYER_NAME], string[128];
        //----------------------------------------------------------------------
        if(sscanf(params, "us[24]", player1, tmp2)) return
        SendClientMessage(playerid, LIGHTBLUE2, "Usage: /setname [PlayerID] [NewName]") &&
        SendClientMessage(playerid, orange, "Function: Will set Name of specified player!");
        //----------------------------------------------------------------------
        if(strlen(tmp2) < 3 || strlen(tmp2) > MAX_PLAYER_NAME) return
        SendClientMessage(playerid,red,"ERROR: Incorrect Name Length");
        //----------------------------------------------------------------------
        if(AccInfo[player1][Level] == ServerInfo[MaxAdminLevel] && AccInfo[playerid][Level] != ServerInfo[MaxAdminLevel]) return
        SendClientMessage(playerid,red,"ERROR: You cannot use this command on this admin");
        //----------------------------------------------------------------------
        if(IsPlayerConnected(player1) && player1 != INVALID_PLAYER_ID)
        {
            SendCommandToAdmins(playerid,"SetName");
            format(string, sizeof(string), "|- You have set \"%s's\" Name to \"%s\" -|", pName(player1), tmp2);
            SendClientMessage(playerid,BlueMsg,string);
            if(player1 != playerid)
            {
                format(string,sizeof(string),"|- Administrator \"%s\" has set your Name to \"%s\" -|", pName(playerid), tmp2);
                SendClientMessage(player1,blue,string);
            }
            SetPlayerName(player1, tmp2);
            return OnPlayerConnect(player1); //Error line
        }
        else return ErrorMessages(playerid, 2);
    }
    else return ErrorMessages(playerid, 1);
}



Re : 6 Errors (+REP) - yusei - 15.05.2014

Explain further. can't find "hooked" give us the exact lines please !


Re: 6 Errors (+REP) - Spartaaaaa - 15.05.2014

See my last post of Pawn code i write //Error line