03.02.2012, 18:38
OnGameModeInit() has no such parameter as playerid therefore the compiler sees it as undefined.
You need to create all of the textdraws in a loops, or more effeciantly under OnPlayerConnect.
You need to create all of the textdraws in a loops, or more effeciantly under OnPlayerConnect.
pawn Код:
public OnGameModeInit()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
Stats[i] = TextDrawCreate(499.000000, 110.000000, "~r~Kills: ~w~0 ~g~Deaths: ~w~0");
TextDrawBackgroundColor(Stats[i], 255); TextDrawFont(Stats[playerid], 2);
TextDrawLetterSize(Stats[i], 0.159999, 1.000000);
TextDrawColor(Stats[i], -1);
TextDrawSetOutline(Stats[i], 0);
TextDrawSetProportional(Stats[i], 1);
TextDrawSetShadow(Stats[i], 1);
}
return 1;
}