fixed null weapon problems in get_user_astats

This commit is contained in:
Lukasz Wlasinksi
2004-09-12 18:00:53 +00:00
parent 1a2ef38588
commit 8589f0bcf5
5 changed files with 17 additions and 26 deletions

View File

@ -130,7 +130,7 @@ void RankSystem::clear(){
bool RankSystem::loadCalc(const char* filename, char* error)
{
if ((MF_LoadAmxScript(&calc.amx,&calc.code,filename,error,0)!=AMX_ERR_NONE)||
if ((MF_LoadAmxScript(&calc.amx,&calc.code,filename,error)!=AMX_ERR_NONE)||
(MF_AmxAllot(&calc.amx, 8 , &calc.amxAddr1, &calc.physAddr1)!=AMX_ERR_NONE)||
(MF_AmxAllot(&calc.amx, 8 , &calc.amxAddr2, &calc.physAddr2)!=AMX_ERR_NONE)||
(MF_AmxFindPublic(&calc.amx,"get_score",&calc.func)!=AMX_ERR_NONE)){
@ -305,5 +305,4 @@ void RankSystem::saveRank( const char* filename )
fwrite( &i , 1, sizeof(short int), bfp); // null terminator
fclose(bfp);
}
}