/////////////////////////////////////////////////////////////////////////////////// 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); //////////////////////////////////////////////////////////////////////////////
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.
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!
|
new PlayerText:IgracevInfo[MAX_PLAYERS][14]; //14 is the maximum amount of textdraws created
new zlatoba[90];
format(zlatoba, sizeof(zlatoba),"%d g",PlayerInfo[playerid][pZlato]);
PlayerTextDrawSetString(playerid, IgracevInfo[playerid][14], zlatoba);
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 код:
PHP код:
|