Call a function
#1

Simple question how can I call a function without using a timer?
Reply
#2

In what way?
Reply
#3

I mean like this...
pawn Код:
public LOOOL()
{

    SendPlayerFormattedText(playerid,"Virtual World 2", 0);

    return 1;
   
}
pawn Код:
public LOOOL2(playerid)
{

    new world_id;
    world_id = GetPlayerVirtualWorld(playerid);

    if(world_id == 1)
    {

    SendPlayerFormattedText(playerid,"Virtual World 1", 0);

    }

    else if(world_id == 2)
    {

    SetTimer("LOOOL", 1000, false); // I dont want to use this timer

    }

    return 1;
}
hope u understand my problem
Reply
#4

What about:
pawn Код:
public LOOOL2(playerid)
{

    new world_id;
    world_id = GetPlayerVirtualWorld(playerid);

    if(world_id == 1)
    {

    SendPlayerFormattedText(playerid,"Virtual World 1", 0);

    }

    else if(world_id == 2)
    {

    LOOOL();

    }

    return 1;
}
?

I hope this will help you
Reply
#5

removed
Reply
#6

Quote:
Originally Posted by Jefff
Код:
public LOOOL2()
:P
What do you mean by what?

I know that your functions are only examples, but there are a few errors^^
pawn Код:
public LOOOL(playerid)
{

    SendPlayerFormattedText(playerid,"Virtual World 2", 0);

    return 1;
   
}
pawn Код:
public LOOOL2(playerid)
{

    new world_id;
    world_id = GetPlayerVirtualWorld(playerid);

    if(world_id == 1)
    {

    SendPlayerFormattedText(playerid,"Virtual World 1", 0);

    }

    else if(world_id == 2)
    {

    LOOOL(playerid); // Without timer

    }

    return 1;
}
now I guess it's right
Reply
#7

sorry but what u wrote doesn't work
pawn Код:
LOOOL();
some1 can help pls
Reply
#8

ok if this doesn#T work i use timer
How many timers I can use maybe over 1000?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)