undefined symbol "params"
#1

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);
Reply
#2

bump
Reply
#3

any suggestions?
Reply
#4

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
Reply
#5

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;
	}
Reply
#6

use "inputtext" instead of "params"
Reply
#7

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

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 { }
    }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)