24.08.2009, 15:26
Hi there. I'm trying to check whenever a player connects, the server uses dini to check if a dini key exists for that player in a certain file. Then, it saves the value of the key to an array to avoid excessive accessing of the ini file.
Any help?
pawn Код:
public OnPlayerConnect(playerid)
{
SetPlayerMapIcon(playerid,20,337.5643,-1370.2089,14.3267,55,0); // THE ICON
new NameString[MAX_PLAYER_NAME];
new string[255];
GetPlayerName(playerid,NameString,sizeof(NameString));
string = dini_Get("LicenseInfo.ini", NameString);
pLicensesInfo[playerid] = string; // LINE 79
return 1;
}
Код:
C:\Users\Family\Desktop\()\SAMP server shit\filterscripts\CarSchool.pwn(79) : error 006: must be assigned to an array