31.08.2012, 04:26
pawn Code:
else if( clickedid == DialPadNum )
{
new
matches = 0;
if( strlen( cellDialedNumber [ playerid ] ) == 9 )
{
for( new u; u < MAX_PLAYERS; u ++ )
{
//if( plStats [ u ] [ CellPhoneNumber ] == cellDialedNumber [ playerid ] )
if( strcmp( cellDialedNumber [ playerid ], plStats [ u ] [ CellPhoneNumber ], false ) == 0 )
{
SendClientMessage( u, Colour_RankOrange, "LOL THIS MESSAGE IS OBNOXIOUS. O AND SOMEONE B CALLIN U" );
SendClientMessage( playerid, Colour_Yellow, "LOL IT WURKS" );
matches ++;
}
}
}
if( matches == 0 ) {
SendClientMessage( playerid, -1, "no wurk :(" );
}
SendClientMessage( playerid, -1, "#" );
}
Loop through all the players, and if their number is equal to cellDialedNumber [ playerid ], then it will tell both users that it worked.
What it's doing:
Saying every number exists and spamming me with "LOL IT WURKS"
Any help would be appreciated greatly.