21.01.2017, 18:31
Felipe eu montei assim:
Porem deu os seguintes erros:
TERIA COMO ME AJUDAR?
PHP код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid != INVALID_PLAYER_ID)
{
Player[killerid][Kills]++;
new file[50];
format(file, sizeof(file), PASTA_CONTAS, PlayerName(playerid));
DOF2_SetInt(file, "Matou", Player[killerid][Kills]);
DOF2_SaveFile();
}
PlayerDeaths[playerid] ++;
new file[50];
format(file, sizeof(file), PASTA_CONTAS, PlayerName(playerid));
DOF2_SetInt(file, "Morreu", Player[playerid][Death]);
DOF2_SaveFile();
return 1;
}
PHP код:
error 017: undefined symbol "Player"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line