Help with stock..
#1

pawn Код:
stock UpdateTOP5(playerid)
{
    new string[128], buffer[64], Float: Promedio, name[25], tmp[64],
    File: top = fopen("/Top5/Top5.ini", io_append);
    GetPlayerName(playerid, name, 25);
    Promedio = floatdiv(kills[playerid]+deaths[playerid]+GetPlayerScore(playerid), 3);
    format(buffer, 64, "%s %d\r\n", name, floatround(Promedio, floatround_round));
    fclose(top);
    return 1;
}
So.. how can I do to check if the player is not on the list, add his stats, else if he is, to overwrite the existing stats for that person?

Thanks
Reply


Messages In This Thread
Help with stock.. - by The_Moddler - 17.10.2010, 14:53

Forum Jump:


Users browsing this thread: 2 Guest(s)