SetTimerEx does not display the correct variable's value
#1

pawn Код:
public OnGameModeInit()
{
    print("It's about to start the timer now, I suppose..");
    SetTimerEx("for_testing_purposes", 500, false, "is", 666, "Message for testing purposes!");
   
    return 1;
}

forward for_testing_purposes(integer, string[]);
public for_testing_purposes(integer, string[])
{
    printf("Integer: %i; String: %s", integer, string);
    return 1;
}
Just a simple timer for testing purposes, as you can see, but there's something wrong with passing the string. If you take a look at the server console print, you can see, that it's not passing the value of string correctly.

Quote:

[17:51:08] It's about to start the timer now, I suppose..
[17:51:08] Integer: 666; String:
1.03.0011

I've had similar problems with my enums and variables. Exempli gratia if I've set the variables value to 1, it will print 48 or something close to that.

Does anyone know what could cause the problem? It only occurs in the script, I'm developing.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)