What's wrong here?
#1

pawn Код:
version = TextDrawCreate(572.000000, 419.000000, "Version: %s", S_VERSION);
    TextDrawBackgroundColor(version, 90);
    TextDrawFont(version, 1);
    TextDrawLetterSize(version, 0.290000, 2.200000);
    TextDrawColor(version, -1);
    TextDrawSetOutline(version, 0);
    TextDrawSetProportional(version, 1);
S_VERSION is defined on top of the script, but i get this warning on the TextDrawCreate line:

Код:
warning 202: number of arguments does not match definition
What's wrong?
Reply
#2

You can't format a string through TextDrawCreate. You need to use format.

pawn Код:
new textDisplay[25];
format(textDisplay, sizeof(textDisplay), "Version: %s", S_VERSION);
version = TextDrawCreate(572.000000, 419.000000, textDisplay);
Reply
#3

The problem is here
pawn Код:
version = TextDrawCreate(572.000000, 419.000000, "Version: %s", S_VERSION);
Remove "S_VERSION". TextDrawCreate has only 3 parameters; X, Y, Text[]
Reply
#4

Alright, thanks guys
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)