SA-MP Forums Archive
undefined symbol "params" - 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: undefined symbol "params" (/showthread.php?tid=137713)



undefined symbol "params" - DarkPower - 29.03.2010

C:\Users\NASTIE\Desktop\EFSadmin\filterscripts\EFS admin.pwn(356) : error 017: undefined symbol "params"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

LINE 356

Код:
new password = num_hash(params);



Re: undefined symbol "params" - DarkPower - 29.03.2010

bump


Re: undefined symbol "params" - DarkPower - 29.03.2010

any suggestions?


Re: undefined symbol "params" - Nero_3D - 29.03.2010

you use the variable "params" but never created it!

I think this code should be in some dcmd / zcmd function

ask in the topic where you got the code


Re: undefined symbol "params" - DarkPower - 29.03.2010

Quote:
Originally Posted by ♣ Joker ♠
you use the variable "params" but never created it!

I think this code should be in some dcmd / zcmd function

ask in the topic where you got the code
so can you help me??

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if (dialogid == 66)
	{
 		if(response == 0)
		{
			Kick(playerid);
		}
 		if(response)
	  {

 			if(gPlayerInfo[playerid][PLAYER_REGGED] == 0)
	    return SendClientMessage(playerid, COLOUR_ORANGE, "ERROR: You have already registered!");
	    }
	    else
      {
	    new password = num_hash(params);
	    gPlayerInfo[playerid][PLAYER_PASS] = password;
	    gPlayerInfo[playerid][PLAYER_REGGED] = 1;
      gPlayerInfo[playerid][PLAYER_LOGGED] = 1;
	    GetPlayerIp(playerid, gPlayerInfo[playerid][PLAYER_IP], 16);
	    new string[256]; format(string, sizeof(string), "You have successfully registered your account with the password \'%s\'. You have been automatically logged in.", string);
	    return SendClientMessage(playerid, COLOUR_LIGHTBLUE, string);
			}
		}
return 1;
	}



Re: undefined symbol "params" - Cank - 29.03.2010

use "inputtext" instead of "params"


Re: undefined symbol "params" - DarkPower - 29.03.2010

Quote:
Originally Posted by Cank
use "inputtext" instead of "params"
Thank you alott man


Re: undefined symbol "params" - Nero_3D - 29.03.2010

Your code got a bracket mistake, check it again

Currently it is

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 66)
    {
        if(response == 0) { }
        if(response)
        {
            if(gPlayerInfo[playerid][PLAYER_REGGED] == 0) { }
        } else { }
    }
}