29.01.2013, 00:07
Quote:
Код:
new Text:Textdraw4[MAX_PLAYERS]; Код:
public OnPlayerDeath(playerid, killerid, reason) { SetPlayerScore(playerid, GetPlayerScore(killerid)+ 1); new str[100]; format(str, sizeof(str),"Score: %d", GetPlayerScore(killerid)); TextDrawSetString(Scores[killerid], str); TextDrawShowForPlayer(killerid, Scores[killerid]); return 1; } Код:
public OnGameModeInit() { Textdraw4 = TextDrawCreate(407.000000, 433.000000, " "); TextDrawBackgroundColor(Textdraw4, 421075455); TextDrawFont(Textdraw4, 1); TextDrawLetterSize(Textdraw4, 0.230000, 1.400000); TextDrawColor(Textdraw4, -1); TextDrawSetOutline(Textdraw4, 1); TextDrawSetProportional(Textdraw4, 1); return 1; } Код:
public OnPlayerSpawn(playerid) { TextDrawShowForPlayer(playerid, Textdraw4); return 1; } PHP код:
|
cara vocк definiu a text em [MAX_PLAYERS] e ta passando sem o parametro ? --'
Olha seu topo e o resto do code.