11.07.2013, 21:50
Hello,
I am editing LA-RP to a brand new script. But I need help with opening its' mysql which is built in itself.
Here is the lines which has got error:
and here is the error :
Thanks.
edit: This has got the error btw.
I am editing LA-RP to a brand new script. But I need help with opening its' mysql which is built in itself.
Here is the lines which has got error:
pawn Код:
public OnPlayerRegister(playerid, password[]) // v1.0 by Luk0r
{
if(IsPlayerConnected(playerid))
{
MySQLCheckConnection();
new playername3[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername3, sizeof(playername3));
new newaccountsqlid = MySQLCreateAccount(playername3, password);
if (newaccountsqlid != 0)
{
PlayerInfo[playerid][pSQLID] = newaccountsqlid;
PlayerInfo[playerid][pKey] = password;
strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255);
OnPlayerUpdate(playerid);
SendClientMessage(playerid, COLOR_YELLOW, "Account registered, you can now log in (/login [password]).");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_DARKNICERED, "There was an error creating your account. You will be disconnected now.");
Kick(playerid);
return 0;
}
}
return 0;
}
Код:
C:\Documents and Settings\Admin\Desktop\server\gamemodes\larp.pwn(11450) : error 047: array sizes do not match, or destination array is too small Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
edit: This has got the error btw.
pawn Код:
PlayerInfo[playerid][pKey] = password;