25.11.2011, 16:48
Well, i wanted to make a vip chat, but if i use it wont work.. what am i doing wrong in this code?
Thanks!
pawn Code:
if( text [ 0 ] == '!')
{
for (new i; i < MAX_PLAYERS; i++)
{
if(APlayerData[i][EtMemberShip] == 1)
{
new string[ 128 ];
GetPlayerName( playerid , string , sizeof( string ));
if(APlayerData[i][EtMemberShip] == 1)
{
format( string , sizeof( string ) , " Vip Chat: {FC0303}%s{FFFFFF}: {00CEFC}%s" , string , text[ 1 ] ) ;
SendClientMessage(i, 0xFFFFFFF , string ) ;
}
}
}
return 0 ;