17.04.2014, 06:29
Quote:
pawn Код:
|
EDIT: I tried compiling your code and it worked. Can you give me the full code? (The code that happens before and after the code you showed).
I compiled it using this and it worked:
pawn Код:
#include <a_samp>
#include <dini>
enum pInfo
{
pCamionero,
}
new PlayerInfo[MAX_PLAYERS][pInfo];
public OnPlayerSpawn(playerid)
{
new file[80];
format(file, sizeof(file),"Strike_Camionero/%s.ini", pName(playerid));
if(dini_Exists(file))
{
PlayerInfo[playerid][pCamionero] = dini_Int(file,"Camionero");
}
return 1;
}
stock pName(playerid)
{
new name[128];
GetPlayerName(playerid, name, sizeof(name));
return name;
}