02.01.2013, 19:56
yes because your not using it correctly!
When you declared the "MAX_PLAYERS" is basically a define of "500" which then is set to the variable which means the variables is now an Arrey. which holds "MAX_PLAYERS" slots in it so it can store values in it for "MAX_PLAYERS"/"500" playerid.
So later on you will have to tell the script which exact playerid you want.
damm ;X
pawn Код:
new saveammoex[MAX_PLAYERS][13];
format(string, 128, "GunId%d", s);
if( strcmp( key , string , true ) == 0 ) { val = ini_GetValue( Data ); PlayerInfo[playerid][pGunz][s] = strval( val ); }
format(string, 128, "Ammo%d",val);
if( strcmp( key, string, true ) == 0) { val = ini_GetValue ( Data ); saveammoex[playerid][s] = strval ( val ); }
So later on you will have to tell the script which exact playerid you want.
Quote:
This forum requires that you wait 120 seconds between posts |