Just a small question.
#5

The only difference is in the length/capacity of a message (string). The parameter/argument doesn't take up string-length and the other one does.

pawn Код:
// [ DEVELOPMENT GAMEMODE ]

// INCLUDES:

#include <a_samp>

// MAIN:

main()
{
    print("Development Mode: color_length.amx");

    new string[144];
    format(string, sizeof(string), "{FFFFFF}%s is a chicken!", "Larva");
    SendClientMessageToAll(-1, string);

    printf("%d", strlen(string));

    format(string, sizeof(string), "%s is a chicken!", "Larva");
    SendClientMessageToAll(-1, string);

    printf("%d", strlen(string));
}

// CALLBACKS:

public OnGameModeInit()
{
    return 1;
}

public OnGameModeExit()
{
    return 1;
}


Length capacity: 144.
Reply


Messages In This Thread
Just a small question. - by Sjn - 30.08.2015, 16:05
Re: Just a small question. - by Gazzy - 30.08.2015, 16:08
Re: Just a small question. - by JessThompson - 30.08.2015, 17:25
Re: Just a small question. - by SpikY_ - 30.08.2015, 17:31
Re: Just a small question. - by SickAttack - 30.08.2015, 17:37

Forum Jump:


Users browsing this thread: 1 Guest(s)