28.01.2015, 22:59
Mira esto es todo lo que tengo sobre el textdraw:
Asi lo tengo, y la consola me lanza este error:
Код:
GamemodeInit SetTimer("setlevel", 1000, true); Nivel = TextDrawCreate(499.5 ,114 , "--"); TextDrawFont(Nivel , 3); TextDrawLetterSize(Nivel , 0.6, 2.0); TextDrawColor(Nivel , 0x185fd9FF); TextDrawSetOutline(Nivel , false); TextDrawSetProportional(Nivel , true); TextDrawSetShadow(Nivel , 1); Exp = TextDrawCreate(496, 136, "--"); TextDrawFont(Exp , 3); TextDrawLetterSize(Exp , 0.6, 2.0); TextDrawColor(Exp , 0x185fd9FF); TextDrawSetOutline(Exp , false); TextDrawSetProportional(Exp , true); TextDrawSetShadow(Exp , 1); Tel = TextDrawCreate(501, 158 ,"--"); TextDrawFont(Tel , 3); TextDrawLetterSize(Tel , 0.6, 2.0); TextDrawColor(Tel , 0x185fd9FF); TextDrawSetOutline(Tel , false); TextDrawSetProportional(Tel , true); TextDrawSetShadow(Tel , 1); SetTimer("settime",1000,true); // Fecha Date = TextDrawCreate(547.000000, 11.000000, "--"); TextDrawFont(Date, 3); TextDrawLetterSize(Date, 0.5, 1.6); TextDrawColor(Date, 0xFFFFFFFF); // tiempo Time = TextDrawCreate(547.000000, 28.000000, "--"); TextDrawFont(Time, 3); TextDrawLetterSize(Time, 0.5, 1.6); TextDrawColor(Time, 0xFFFFFFFF); Public OnPlayerSpawn { if(Player[playerid][Authenticated] == 1) { SetPlayerScore(playerid, Player[playerid][PlayerScore]); TextDrawShowForPlayer(playerid, Time), TextDrawShowForPlayer(playerid, Date); TextDrawShowForPlayer(playerid, Nivel), TextDrawShowForPlayer(playerid, Exp), TextDrawShowForPlayer(playerid, Tel); } } public setlevel() { for(new playerid = 0; playerid < MAX_PLAYERS; playerid++) { new string[256]; if(Player[playerid][Level] == Player[playerid][MaxLevel]) { SetPlayerScore(playerid, GetPlayerScore(playerid)+1); Player[playerid][PlayerScore] = GetPlayerScore(playerid); Player[playerid][Level] = 0; Player[playerid][MaxLevel] = Player[playerid][MaxLevel]+11; format(string, sizeof(string), "Felicidades has subido un nivel, ahora eres nivel %d.", Player[playerid][PlayerScore]); SendClientMessage(playerid, WHITE, string); } format(string, sizeof(string), "Nivel: %d", Player[playerid][PlayerScore]); TextDrawSetString(Nivel, string); format(string, sizeof(string), "Exp: %d/%d", Player[playerid][Level], Player[playerid][MaxLevel]); TextDrawSetString(Exp, string); format(string, sizeof(string), "Tel: %d", Player[playerid][PhoneN]); TextDrawSetString(Tel, string); if(Player[playerid][SecondsToLevel] == 0) { Player[playerid][SecondsToLevel] = 3600; Player[playerid][Level]++; } } }
Quote:
[join] Matthew_Hudson has joined the server (0:190.250.83.121) [18:31:14] Warning: client exceeded 'ackslimit' 190.250.83.121:57257 (3326) Limit: 3000/sec [18:31:25] [part] Matthew_Hudson has left the server (0:0) |