09.01.2010, 21:00
Well i'm creating a system to allow faction leaders to set codes ig, and this is my savecode function.
how would i do the LoadCode() function to go with it?
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;
}