SA-MP Forums Archive
PEN LS Dialog Errors HELP!!!! - 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: PEN LS Dialog Errors HELP!!!! (/showthread.php?tid=138420)



PEN LS Dialog Errors HELP!!!! - DarkPower - 01.04.2010

http://pastebin.com/1XcaAqAN
pawn Код:
if (dialogid == 7)
    {
        if(response == 0)
        {
            Kick(playerid);
        }

        if(response)
        {
        new tmppass[64];
        tmp = strtok(inputtext[], idx);
        strmid(tmppass, tmp, 0, strlen(inputtext[]), 255);
        Encript(tmppass);
        if (gdebug){printf("DEBUG enterd %s", tmppass);}
        OnPlayerLogin(playerid,tmppass);
        }
   }
   return 1;
    }
return 0;
}
C:\Users\NASTIE\Desktop\penls.pwn(9813) : warning 219: local variable "tmppass" shadows a variable at a preceding level
C:\Users\NASTIE\Desktop\penls.pwn(19427) : warning 209: function "OnDialogResponse" should return a value
C:\Users\NASTIE\Desktop\penls.pwn(1942 : error 010: invalid function or declaration
C:\Users\NASTIE\Desktop\penls.pwn(19430) : error 010: invalid function or declaration
C:\Users\NASTIE\Desktop\penls.pwn(19435) : error 010: invalid function or declaration
C:\Users\NASTIE\Desktop\penls.pwn(1943 : error 010: invalid function or declaration
C:\Users\NASTIE\Desktop\penls.pwn(19440) : error 021: symbol already defined: "Encript"
C:\Users\NASTIE\Desktop\penls.pwn(19441) : error 010: invalid function or declaration
C:\Users\NASTIE\Desktop\penls.pwn(19442) : error 021: symbol already defined: "OnPlayerLogin"
C:\Users\NASTIE\Desktop\penls.pwn(19445) : error 010: invalid function or declaration
C:\Users\NASTIE\Desktop\penls.pwn(19447) : error 010: invalid function or declaration
C:\Users\NASTIE\Desktop\penls.pwn(19454) : warning 203: symbol is never used: "tmppass"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


9 Errors.


Re: PEN LS Dialog Errors HELP!!!! - aircombat - 01.04.2010

Код:
if (dialogid == 7)
	{
 		if(response == 0)
		{
			Kick(playerid);
		}
        else if(response == 1)
		{
		tmp = strtok(inputtext[], idx);
		strmid(tmppass, tmp, 0, strlen(inputtext[]), 255);
		Encript(tmppass);
		if (gdebug){printf("DEBUG enterd %s", tmppass);}
		OnPlayerLogin(playerid,tmppass);
		}
   }
   return 1;
	}
return 0;
}