Well I'm using IsSuspected[MAX_PLAYERS] at the top but nothing left on the side. I only have something on the side to tell the script that they have to be suspected/wanted or if they are suspected or wanted. So I'm mostly using == and =. Hero made this wanted for me but this is never going to work because it can't count something that hasent been added. How would I fix this to compile with IsSuspected
[pawn]enum pwanted
{
iswanted
}
[/pawn]
[pawn]
new wantedinfo[ MAX_PLAYERS ][ pwanted ];[/pawn]
[pawn]}
else if ( strcmp( cmd, "wanted", true ) == 0 )
{
new szMsg[ 128 ];
tmp = strtok( cmdtext, idx );
if ( !IsLoggedIn( playerid ) ) SendClientMessage( playerid, COLOR_RED, "*****Please Log-In First*****" );
else
{
for( new i = 0; i <= GetMaxPlayers(); i++ )
if(wantedinfo[iswanted] == 1)
{
format( szMsg, sizeof( szMsg ), "Wanted List: %s",i);
SendClientMessage(playerid, COLOR_YELLOW, szMsg );
}
}
return 1;[/pawn]