SA-MP Forums Archive
Need help to fix small 3 problem with my 3 commands (+rep) - 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: Need help to fix small 3 problem with my 3 commands (+rep) (/showthread.php?tid=580587)



Need help to fix small 3 problem with my 3 commands (+rep) - Sc0pion - 06.07.2015

Fixed!


Re: Need help to fix small 3 problem with my 3 commands (+rep) - MohammedZ - 06.07.2015

There is no world 9999 i think so instead you can make it 1 2 3 4 5 6?

It should work if i helped dont forget to {+rep


Re: Need help to fix small 3 problem with my 3 commands (+rep) - Sc0pion - 06.07.2015

Fixed!


Re: Need help to fix small 3 problem with my 3 commands (+rep) - MohammedZ - 06.07.2015

Try to change this
Quote:

for(new i = 0; i < MAX_PLAYERS; i++)
{
if(GetPlayerVirtualWorld(i)== 9999)
{
SetPlayerPos(i, x, y, z);
return 1;
}
}

Into This

Quote:

if(GetPlayerVirtualWorld(playerid)== 9999)
{
SetPlayerPos(playerid, x, y, z);
return 1;
}


SAME TO OTHERS


Re: Need help to fix small 3 problem with my 3 commands (+rep) - Sc0pion - 06.07.2015

Fixed!


Re: Need help to fix small 3 problem with my 3 commands (+rep) - Sc0pion - 07.07.2015

Fixed!


Re: Need help to fix small 3 problem with my 3 commands (+rep) - Jefff - 07.07.2015

pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
    if(IsPlayerConnected(i) && GetPlayerVirtualWorld(i) == 9999)
        SetPlayerHealth(i, 100.0);

for(new i = 0; i < MAX_PLAYERS; i++)
    if(IsPlayerConnected(i) && GetPlayerVirtualWorld(i) == 9999)
        SetPlayerPos(i, x, y, z);

for(new i = 0; i < MAX_PLAYERS; i++)
    if(IsPlayerConnected(i) && GetPlayerVirtualWorld(i) == 9999)
        GivePlayerWeapon(i, weapon, ammo);



Re: Need help to fix small 3 problem with my 3 commands (+rep) - unSatisfied - 08.07.2015

Did you redefine MAX_PLAYERS? Or is your server capacity (in your server.cfg file) greater than the default MAX_PLAYERS (500)?


Re: Need help to fix small 3 problem with my 3 commands (+rep) - Sc0pion - 08.07.2015

Fixed!