warning 215: expression has no effect
#1

I do not know what happens , gives me the compile errors below

ERRORS:
Код:
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(8453) : error 029: invalid expression, assumed zero
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(8453) : warning 215: expression has no effect
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(8453) : warning 215: expression has no effect
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(8453) : warning 215: expression has no effect
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(8453) : warning 215: expression has no effect
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(8453) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(8453) : error 029: invalid expression, assumed zero
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(8453) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
line start: 8439 to 8456 is:

Код:
	if(dialogid == 1244)
	{
		    if(response)
		    {
				if (gPlayerAccount[playerid] != 0)
				{
				gPlayerAccount[playerid] = 1;
				new loginstring[128];
				new loginname[64];
				SCM(playerid, COLOR_GREY, " ");
				SCM(playerid, COLOR_GREY, " ");
				if(IsPlayerNPC(playerid)) return 1;
				GetPlayerName(playerid,loginname,sizeof(loginname));
				format(loginstring,sizeof(loginstring),"{FFFFFF}Bine ai revenit, "color_green"%s\n{FFFFFF}Acest cont este inregistrat.\nTe rugam introdu parola pentru a te loga:",loginname);
				ShowPlayerDialog(playerid, 12346, DIALOG_STYLE_PASSWORD," ",loginstring,"Logare","Iesi");
				}
				else
				{
Reply
#2

pawn Код:
GetPlayerName(playerid,loginname,MAX_PLAYER_NAME);
format(loginstring,128,"{FFFFFF}Bine ai revenit, %s\nAcest cont este inregistrat.\nTe rugam introdu parola pentru a te loga:",loginname);
ShowPlayerDialog(playerid, 12346, DIALOG_STYLE_PASSWORD,"Login",loginstring,"Logare","Iesi");
Reply
#3

not work

Код:
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(8453) : error 029: invalid expression, assumed zero
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(8453) : warning 215: expression has no effect
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(8453) : warning 215: expression has no effect
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(8453) : warning 215: expression has no effect
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(8453) : warning 215: expression has no effect
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(8453) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(8453) : error 029: invalid expression, assumed zero
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(8453) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply
#4

any help me ?
Reply
#5

Try again
Reply
#6

other errors:

Код:
C:\Documents and Settings\emp7y\Desktop\iLg\pawno\include\Rotative.inc(91) : error 004: function "OnObjectRotated" is not implemented
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(3373) : error 017: undefined symbol "PlayerBowlingFile"
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(5290) : error 004: function "SetPlayerToTeamColor" is not implemented
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(5315) : error 004: function "SetPlayerToTeamColor" is not implemented
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(5380) : error 004: function "IsAnOwnableCar" is not implemented
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(5390) : error 004: function "IsAnOwnableEli" is not implemented
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(5400) : error 004: function "IsAnOwnableBoat" is not implemented
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(5480) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(5484) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(5498) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(5502) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(5506) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(5510) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(5514) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(5518) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(5522) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(5536) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(5540) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(5544) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(5548) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(5552) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(5561) : error 004: function "IsAnOwnableCar" is not implemented
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(5563) : error 004: function "SetVehicleModifications" is not implemented
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(5574) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(5578) : error 004: function "PlayerToPoint" is not implemented
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(5582) : error 004: function "PlayerToPoint" is not implemented

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
Reply
#7

I solved the problem
I deleted DIALOG_STYLE_PASSWORD , cuz not work...
please give me a tutorial how to make PASSWORD DIALOG STYLE , if you know...please
Reply
#8

This is what I use.
pawn Код:
if(dialogid == DIALOG_LOGIN) {
        if(response) {
            if(!strlen(inputtext)) {
                ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Server Name\nWelcome Back!\nEnter your password below.", "This account is registered.\n\nEnter your password below to login.", "Login", "Cancel");
                return 1;
            }
            else {
                new string[258];
                new name[MAX_PLAYER_NAME];
                GetPlayerName(playerid, name, sizeof(name));
                format(string, sizeof(string), "users/%s.ini", name);
                //This is how I open files.
                new File: hFile = fopen(string, io_read);
                if (hFile) {
                    fclose(hFile);
                    //Your player login callback
                }
            }
        }
        else {
            SendClientMessage(playerid, COLOR_LIGHTRED, "You chose not to login! (kicked).");
            Kick(playerid);
        }
    }
    if(dialogid == DIALOG_REGISTER) {
        if(response) {
            if(strlen(inputtext) < 0) {
                ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Welcome to Server Name\nEnter your desired password below.", "You entered a password with no length!\n\nEnter a valid password to register.", "Register", "Cancel");
            }
            if(strlen(inputtext) > 0) {
                //Your player register callback
                strmid(PlayerInfo[playerid][pPassword], inputtext, 0, strlen(inputtext), 255);
                // Saving player's data here.
                ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Server Name - Login!", "Thanks for registering!\n\nType your password below to login and play!", "Login", "Cancel");
            }
        }
        else {
            SendClientMessage(playerid, COLOR_LIGHTRED, "You chose not to register!");
            Kick(playerid);
        }
    }
Reply
#9

more errors....

Код:
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(8441) : warning 217: loose indentation
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(8441) : error 017: undefined symbol "DIALOG_LOGIN"
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(8444) : error 017: undefined symbol "DIALOG_LOGIN"
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(8448) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(8449) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(8465) : warning 217: loose indentation
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(8465) : error 017: undefined symbol "DIALOG_REGISTER"
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(8468) : error 017: undefined symbol "DIALOG_REGISTER"
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(8472) : error 017: undefined symbol "pPassword"
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(8474) : error 017: undefined symbol "DIALOG_LOGIN"
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(17837) : warning 204: symbol is assigned a value that is never used: "wanted"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Errors.
Reply
#10

new error

Код:
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(8444) : warning 217: loose indentation
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(8451) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(8452) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(8468) : warning 217: loose indentation
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(8475) : error 017: undefined symbol "pPassword"
C:\Documents and Settings\emp7y\Desktop\iLg\gamemodes\iLg.pwn(17880) : warning 204: symbol is assigned a value that is never used: "wanted"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)