14.09.2013, 06:40
all same errors
this line has the errors
Код:
public OnPlayerConnect(playerid) { new file[100],Name[MAX_PLAYER_NAME],Ip[16]; GetPlayerName(playerid,Name,sizeof(Name)); GetPlayerIp(playerid,Ip,sizeof(Ip)); format(file,sizeof(file),PlayerFile,Name); if(!dini_Exists(file)) { dini_Create(file); dini_IntSet(file,"Coins", pInfo[playerid][Coins]); } pInfo[playerid][Coins] = dini_Int(file,"Coins"); return 1; } public OnPlayerDisconnect(playerid, reason) { new file[100],Name[MAX_PLAYER_NAME],Ip[16]; GetPlayerName(playerid,Name,sizeof(Name)); GetPlayerIp(playerid,Ip,sizeof(Ip)); format(file,sizeof(file),PlayerFile,Name); dini_IntSet(file,"Coins", pInfo[playerid][Coins]); new PlayerName[MAX_PLAYER_NAME], str[128]; GetPlayerName(playerid, PlayerName, sizeof(PlayerName)); return 1; }
Код:
GetPlayerName(playerid,Name,sizeof(Name));