How come I get this error ?
#5

yes because your not using it correctly!
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 ); }
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.
Quote:

This forum requires that you wait 120 seconds between posts

damm ;X
Reply


Messages In This Thread
How come I get this error ? - by I3Psychedelic - 02.01.2013, 16:57
Re: How come I get this error ? - by I3Psychedelic - 02.01.2013, 19:11
Re: How come I get this error ? - by Mr.Anonymous - 02.01.2013, 19:15
Re: How come I get this error ? - by I3Psychedelic - 02.01.2013, 19:47
Re: How come I get this error ? - by park4bmx - 02.01.2013, 19:56
Re: How come I get this error ? - by I3Psychedelic - 02.01.2013, 20:04
Re: How come I get this error ? - by I3Psychedelic - 03.01.2013, 07:38
Re: How come I get this error ? - by park4bmx - 03.01.2013, 15:26

Forum Jump:


Users browsing this thread: 1 Guest(s)