Need help to fix small 3 problem with my 3 commands (+rep)
#1

Fixed!
Reply
#2

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
Reply
#3

Fixed!
Reply
#4

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
Reply
#5

Fixed!
Reply
#6

Fixed!
Reply
#7

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);
Reply
#8

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

Fixed!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)