SA-MP Forums Archive
problem with code - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: problem with code (/showthread.php?tid=365106)



problem with code - Speed++ - 01.08.2012

in the command... does not work.. what is wrong ?

pawn Код:
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);
    }
}



Re: problem with code - [MM]RoXoR[FS] - 02.08.2012

pawn Код:
if(IsPlayerConnected(i) && GetPlayerVirtualWorld(i) == mvID && i != playerid) SendClientMessage(i,-1,string);