new Text:Cash[MAX_PLAYERS];
Cash[i] = TextDrawCreate(498.000000, 80.000000, "Cash: $");
TextDrawBackgroundColor(Cash[i], 1711276202);
TextDrawFont([Cash[i], 3);
TextDrawLetterSize(Cash[i], 0.329998, 1.799999);
TextDrawColor(Cash[i], -1);
TextDrawSetOutline(Cash[i], 1);
TextDrawSetProportional(Cash[i], 1);
TextDrawUseBox(Cash[i], 1);
TextDrawBoxColor(Cash[i], 255);
TextDrawTextSize(Cash[i], 606.000000, 4.000000);
for(new i; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
TextDrawShowForPlayer(i, Cash);
}
}
(2300) : error 029: invalid expression, assumed zero (2300) : warning 215: expression has no effect (2300) : warning 215: expression has no effect (2300) : error 001: expected token: ";", but found ")" (2300) : error 029: invalid expression, assumed zero (2300): fatal error 107: too many error messages on one line |
TextDrawFont([Cash[i], 3);
public OnPlayerConnect ( playerid )
{
YourTextDraw [ playerid ] = TextDrawCreate(498.000000, 80.000000, "Cash: $");
TextDrawBackgroundColor(YourTextDraw [ playerid ], 1711276202);
TextDrawFont(YourTextDraw [ playerid ], 3);
TextDrawLetterSize(YourTextDraw [ playerid ], 0.329998, 1.799999);
TextDrawColor(YourTextDraw [ playerid ], -1);
TextDrawSetOutline(YourTextDraw [ playerid ], 1);
TextDrawSetProportional(YourTextDraw [ playerid ], 1);
TextDrawUseBox(YourTextDraw [ playerid ], 1);
TextDrawBoxColor(YourTextDraw [ playerid ], 255);
TextDrawTextSize(YourTextDraw [ playerid ], 606.000000, 4.000000);
TextDrawShowForPlayer( playerid, YourTextDraw [ playerid ] );
return true;
}
Thanks for quick answer.I make like you said and now i've this error in OnPlayerConnect:
error 035: argument type mismatch (argument 2) Line: pawn Код:
|
TextDrawShowForPlayer( playerid, Cash [ playerid ] );