PDA

View Full Version : problem with code


Speed++
01/08/2012, 10:37 PM
in the command... does not work.. what is wrong ?

new name[MAX_PLAYER_NAME+1];
GetPlayerName(playerid,name,25);
format(string,sizeof(string),"%s (ID : %d) has entered in this virtual world ",name,playerid);
for(new i = 0;i<MAX_PLAYERS;++i)
{
if(IsPlayerConnected(i) && GetPlayerVirtualWorld(i) != mvID && i != playerid) {
SendClientMessage(i,-1,string);
}
}

[MM]RoXoR[FS]
02/08/2012, 05:32 AM
if(IsPlayerConnected(i) && GetPlayerVirtualWorld(i) == mvID && i != playerid) SendClientMessage(i,-1,string);