21.05.2012, 19:55
Try something like this maybe?
pawn Код:
LoadNextMission()
{
new
szFilePath[ 64 ];
format( szFilePath, sizeof(szFilePath), "/Missions/%d.ini", LastMissionStarted +1);//last mission plus 1
if( fexist(szFilePath) )
{
//.. next mission
}
else
{
//next game does not exist
}
}