[HELP] Loading a code from a file?
#1

Well i'm creating a system to allow faction leaders to set codes ig, and this is my savecode function.

pawn Код:
public SaveCode()
{
    new coordsstring[128];
    format(coordsstring, sizeof(coordsstring), "Current Security Code: %d", SEC_CODE);
    new File: file2 = fopen("SecurityCode.ini", io_write);
    fwrite(file2, coordsstring);
    fclose(file2);
    return 1;
}
how would i do the LoadCode() function to go with it?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)