Error 047
#1

Код:
stock OnPlayerLogin(playerid, password[])
{
		new file[128], filepassword[256], tmp[256], PlayerName[24];
		new name[MAX_PLAYER_NAME];
		tmp = password;
But I get this error:
Quote:

C:\Users\James\Desktop\SAMP\gamemodes\FORP.pwn(548 ) : error 047: array sizes do not match, or destination array is too small

And line 548 is "tmp = password;"
Reply
#2

Why would you need that line in the first place? tmp and passwords are strings, not arrays so format tmp like this.

pawn Код:
format(tmp, sizeof(tmp), "%s", password);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)