2 Errors
#1

Code:
Код HTML:
    ///////////////////////////////////////////////////////////////////////////////////
    new bankaba[128];
    format(bankaba, sizeof(bankaba),"$%d",PlayerInfo[playerid][pNovacBanka]);
    PlayerTextDrawSetString(playerid,IgracevInfo[11], zlatoba);
    ///////////////////////////////////////////////////////////////////////////////
    new zlatoba[128];
    format(zlatoba, sizeof(zlatoba),"%d g",PlayerInfo[playerid][pZlato]);
    PlayerTextDrawSetString(playerid,IgracevInfo[14], zlatoba);
    //////////////////////////////////////////////////////////////////////////////
Error:
Код HTML:
C:\Users\Test\Desktop\Grand School RolePlay\gamemodes\gs-rp.pwn(17839) : error 035: argument type mismatch (argument 2)
C:\Users\Test\Desktop\Grand School RolePlay\gamemodes\gs-rp.pwn(17843) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.
P.S. Code is under "OnPlayerUpdate"!
Thank you!
Reply
#2

Quote:
Originally Posted by ******
Посмотреть сообщение
We don't know which lines those are. Of course, the bigger concern with your script is why do you have over 17,000 lines in a single file? Split it up!
Hey, I just want to fix those errors. Not to split the script.
But, how do you think I shoud "split" the script?
Reply
#3

And errors are where are "PlayerTextDrawSetString".
Reply
#4

From what I see "IgracevInfo" is a global text drawing and it is necessary that it be a text player to be used in that way.

It must be like this:

PHP код:
new PlayerText:IgracevInfo[MAX_PLAYERS][14]; //14 is the maximum amount of textdraws created 
And it would look like this:

PHP код:
new zlatoba[90];
format(zlatobasizeof(zlatoba),"%d g",PlayerInfo[playerid][pZlato]);
PlayerTextDrawSetString(playeridIgracevInfo[playerid][14], zlatoba); 
Reply
#5

Quote:
Originally Posted by Undef1ned
Посмотреть сообщение
From what I see "IgracevInfo" is a global text drawing and it is necessary that it be a text player to be used in that way.

It must be like this:

PHP код:
new PlayerText:IgracevInfo[MAX_PLAYERS][14]; //14 is the maximum amount of textdraws created 
And it would look like this:

PHP код:
new zlatoba[90];
format(zlatobasizeof(zlatoba),"%d g",PlayerInfo[playerid][pZlato]);
PlayerTextDrawSetString(playeridIgracevInfo[playerid][14], zlatoba); 
OH MY GOD! Thank you sooooo much for this!!!!!!!!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)