25.03.2014, 11:22
(
Последний раз редактировалось Battlezone; 25.03.2014 в 11:34.
Причина: SOLVED
)
First of all, i have put this at the beginning of the GM
Remark :
*I want to keep soldier info as a string.
*If the player is soldier the string will be "Soldier" and if he's not the string will be "" )
As am getting the string from the player account file, i made this On Player Connect:
But i get this error:
I tried increasing the soldier[9] to soldier[15] (and more) but still the same problem.
Any help?
SOLVED:
pawn Код:
enum pInfo
{
Team,
Skin,
soldier[8],
}
new PlayerInfo[MAX_PLAYERS][pInfo];
*I want to keep soldier info as a string.
*If the player is soldier the string will be "Soldier" and if he's not the string will be "" )
As am getting the string from the player account file, i made this On Player Connect:
pawn Код:
PlayerInfo[playerid][soldier] = dini_Get(file, "Soldier");
Код:
C:\Users\SEIF\Desktop\samp03z_svr_R1_win32\gamemodes\WarZ.pwn(576) : 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.
Any help?
SOLVED:
pawn Код:
strcpy(PlayerInfo[playerid][soldier], dini_Get(file, "Soldier"), 8);
pawn Код:
#define strcpy(%0,%1,%2) strcat((%0[0] = '\0', %0), %1, %2)