All i want to do is bring one value from one map change to another. It's the score of a bot on my server. How can i do this correctly?
Code:
public storescore() {
new fileTxt[64]
format(fileTxt,63,"%i",botscore)
//write_file ( const file[], const text[], [ line ] )
write_file(g_FileLocation,fileTxt,-1)
return PLUGIN_HANDLED
}
public readscore() {
new read[64]
new a
//read_file ( const file[], line, text[], len, &txtLen )
read_file(g_FileLocation,1,read,63,a)
botscore = read[]
return PLUGIN_HANDLED
}