02.01.2011, 22:53
Quote:
Ok, now if got 2 errors.
By this line: GetPlayerIp(playerid, AccountInfo[playerid][aIP], sizeof(AccountInfo[playerid][aIP])); // at on player connect the follow errors: Код:
Z:\Mijn documenten\PC\Game\Maxlife\Script\2011\januari 2011\MLRPG 2011 2 januari\MLRPG 2011 2 januari\gamemodes\mlrpg.pwn(29) : error 001: expected token: "]", but found "-identifier-" Z:\Mijn documenten\PC\Game\Maxlife\Script\2011\januari 2011\MLRPG 2011 2 januari\MLRPG 2011 2 januari\gamemodes\mlrpg.pwn(29) : warning 215: expression has no effect Z:\Mijn documenten\PC\Game\Maxlife\Script\2011\januari 2011\MLRPG 2011 2 januari\MLRPG 2011 2 januari\gamemodes\mlrpg.pwn(29) : error 001: expected token: ";", but found "]" Z:\Mijn documenten\PC\Game\Maxlife\Script\2011\januari 2011\MLRPG 2011 2 januari\MLRPG 2011 2 januari\gamemodes\mlrpg.pwn(29) : error 029: invalid expression, assumed zero Z:\Mijn documenten\PC\Game\Maxlife\Script\2011\januari 2011\MLRPG 2011 2 januari\MLRPG 2011 2 januari\gamemodes\mlrpg.pwn(29) : fatal error 107: too many error messages on one line AccountInfo[playerid][aIP] = dini_Get(File, "IP"); this error: Код:
error 047: array sizes do not match, or destination array is too small |
pawn Код:
AccountInfo[playerid][aIP] = dini_Get(File, "IP");
pawn Код:
public OnPlayerConnect(playerid)
{
GetPlayerIp(playerid, AccountInfo[playerid][aIP], 16); // Assuming 16 is the size of your array, since that's the maximum length of an IP address.
return 1;
}