Warnings [HELP]
#1

Hey Guys, im getting Warnings here on My Script.

warnings :-
Код:
C:\DOCUME~1\User\Desktop\Server\GAMEMO~1\aviator.pwn(80) : warning 202: number of arguments does not match definition
C:\DOCUME~1\User\Desktop\Server\GAMEMO~1\aviator.pwn(78) : warning 204: symbol is assigned a value that is never used: "string"
C:\DOCUME~1\User\Desktop\Server\GAMEMO~1\aviator.pwn(86) : warning 202: number of arguments does not match definition
C:\DOCUME~1\User\Desktop\Server\GAMEMO~1\aviator.pwn(84) : warning 204: symbol is assigned a value that is 
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Warnings.
Line No 78 :-
Код:
new string[64], pName[MAX_PLAYER_NAME];
        GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
		ShowPlayerDialog(playerid,dlogin,DIALOG_STYLE_INPUT,"Aviators Life - Login Process","Welcome Back to Aviators Life.\n\nUsername : %s\n\nEnter Your password Below.","Login","Quit",pName);
Line No 84 :-
Код:
new string[64], pName[MAX_PLAYER_NAME];
        GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
        ShowPlayerDialog(playerid,dregister,DIALOG_STYLE_INPUT,"Aviators Life - Registration Process","Welcome to Aviators Life.\n\nUsername : %s\n\nEnter Your desiered password Below.","Register","Quit",pName);
Reply
#2

Quote:
Originally Posted by Thour57
Посмотреть сообщение
Hey Guys, im getting Warnings here on My Script.

warnings :-
Код:
C:\DOCUME~1\User\Desktop\Server\GAMEMO~1\aviator.pwn(80) : warning 202: number of arguments does not match definition
C:\DOCUME~1\User\Desktop\Server\GAMEMO~1\aviator.pwn(78) : warning 204: symbol is assigned a value that is never used: "string"
C:\DOCUME~1\User\Desktop\Server\GAMEMO~1\aviator.pwn(86) : warning 202: number of arguments does not match definition
C:\DOCUME~1\User\Desktop\Server\GAMEMO~1\aviator.pwn(84) : warning 204: symbol is assigned a value that is 
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Warnings.
Line No 78 :-
Код:
new string[64], pName[MAX_PLAYER_NAME];
        GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
		ShowPlayerDialog(playerid,dlogin,DIALOG_STYLE_INPUT,"Aviators Life - Login Process","Welcome Back to Aviators Life.\n\nUsername : %s\n\nEnter Your password Below.","Login","Quit",pName);
Line No 84 :-
Код:
new string[64], pName[MAX_PLAYER_NAME];
        GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
        ShowPlayerDialog(playerid,dregister,DIALOG_STYLE_INPUT,"Aviators Life - Registration Process","Welcome to Aviators Life.\n\nUsername : %s\n\nEnter Your desiered password Below.","Register","Quit",pName);
Try this.

Line No 78 :-
pawn Код:
new pName[MAX_PLAYER_NAME];
        GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
        ShowPlayerDialog(playerid,dlogin,DIALOG_STYLE_INPUT,"Aviators Life - Login Process","Welcome Back to Aviators Life.\n\nUsername : %s\n\nEnter Your password Below.","Login","Quit",pName);
Line No 84 :-
pawn Код:
new pName[MAX_PLAYER_NAME];
        GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
        ShowPlayerDialog(playerid,dregister,DIALOG_STYLE_INPUT,"Aviators Life - Registration Process","Welcome to Aviators Life.\n\nUsername : %s\n\nEnter Your desiered password Below.","Register","Quit",pName);
Reply
#3

You can't use ShowPlayerDialog like that , you need to format() your string then place it into ShowPlayerDialog(playerid,dialogid,title,yourstrin g,button1,button2);
Reply
#4

still 2 warnings.
Код:
C:\DOCUME~1\User\Desktop\Server\GAMEMO~1\aviator.pwn(80) : warning 202: number of arguments does not match definition
C:\DOCUME~1\User\Desktop\Server\GAMEMO~1\aviator.pwn(86) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
Line no 80 :-
Код:
ShowPlayerDialog(playerid,dlogin,DIALOG_STYLE_INPUT,"Aviators Life - Login Process","Welcome Back to Aviators Life.\n\nUsername : %s\n\nEnter Your password Below.","Login","Quit",pName);
Line no 86 :-
Код:
ShowPlayerDialog(playerid,dregister,DIALOG_STYLE_INPUT,"Aviators Life - Registration Process","Welcome to Aviators Life.\n\nUsername : %s\n\nEnter Your desiered password Below.","Register","Quit",pName);
Reply
#5

here how it should work (this is example for register dialog make same for your register login)
pawn Код:
new pName[MAX_PLAYER_NAME],string[128];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof(string),"Welcome to Aviators Life.\n\nUsername : %s\n\nEnter Your desiered password Below.",pName);
ShowPlayerDialog(playerid,dregister,DIALOG_STYLE_INPUT,"Aviators Life - Registration Process",string,"Register","Quit");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)