Argumen Type Mismatch 1&2
#1

Help me brother

i got this
Код:
D:\data aji\Samp server\gamemodes\Adjie.pwn(264) : error 035: argument type mismatch (argument 1)
D:\data aji\Samp server\gamemodes\Adjie.pwn(264) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
line 264 GetPlayerName(nama,sizeof(nama));

Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid==DIALOG_REGISTER)
	{
	    if(response)
		{
			new nama[MAX_PLAYER_NAME],query[128],password[35];
			GetPlayerName(nama,sizeof(nama));
			if(strlen (inputtext)>=5 )
			{
			    // fungsi dari pada register
			    mysql_escape_string(inputtext,password,mysqlku);
			    format(query,sizeof(query),"INSERT INTO user (username,password) VALUES ('%s','%s')",nama,password);
			    mysql_function_query(mysqlku,query,false,"","");
			}
			else
			{
			    // Password Harus Lebih dari 4 angka berarti 5
			    SendClientMessage(playerid,Warna_Merah,"Password kamu Harus Lebih dari 4 huruf/angka !");
			    ShowPlayerDialog(playerid,DIALOG_REGISTER,DIALOG_STYLE_INPUT,"Register","Kamu adalah player baru Masukan Password untuk Account Barumu","Buat","Keluar");
			}
  		}
  		else
  		{
  		    Kick(playerid);
		}
		return 1;
	}

	return 1;
}
Thanks Before
Reply
#2

Correct arguments for GetPlayerName() are (playerid, const name[], len)
https://sampwiki.blast.hk/wiki/GetPlayerName
Reply
#3

https://sampwiki.blast.hk/wiki/GetPlayerName

GetPlayerName(playerid, nama, sizeof(nama) );
Reply
#4

Quote:
Originally Posted by X337
Посмотреть сообщение
Correct arguments for GetPlayerName() are (playerid, const name[], len)
https://sampwiki.blast.hk/wiki/GetPlayerName
its works thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)