(133) : error 017: undefined symbol "Global_HUD_Txd" (133) : warning 215: expression has no effect (133) : error 001: expected token: ";", but found "]" (133) : error 029: invalid expression, assumed zero (133) : fatal error 107: too many error messages on one line
Global_HUD_Txd[0] = TextDrawCreate(40.476207, 429.359985, "box");
new Text:Global_HUD_Txd[7];
Global_HUD_Txd[0] = TextDrawCreate(40.476207, 429.359985, "box"); Global_HUD_Txd[1] = TextDrawCreate(.... Global_HUD_Txd[2] = TextDrawCreate(... ... |
Global_HUD_Txd[0] = TextDrawCreate(40.476207, 429.359985, "box"); TextDrawLetterSize(Global_HUD_Txd[0], 0.000000, 1.238091); TextDrawTextSize(Global_HUD_Txd[0], 290.000000, 0.000000); TextDrawAlignment(Global_HUD_Txd[0], 1); TextDrawColor(Global_HUD_Txd[0], -1); TextDrawUseBox(Global_HUD_Txd[0], 1); TextDrawBoxColor(Global_HUD_Txd[0], 57); TextDrawSetShadow(Global_HUD_Txd[0], 0); TextDrawSetOutline(Global_HUD_Txd[0], 0); TextDrawBackgroundColor(Global_HUD_Txd[0], 33); TextDrawFont(Global_HUD_Txd[0], 1); TextDrawSetProportional(Global_HUD_Txd[0], 1); TextDrawSetShadow(Global_HUD_Txd[0], 0); Global_HUD_Txd[1] = TextDrawCreate(133.100250, 431.249938, "hud:radar_dateDrink"); TextDrawLetterSize(Global_HUD_Txd[1], 0.000000, 0.000000); TextDrawTextSize(Global_HUD_Txd[1], 7.000000, 7.000000); TextDrawAlignment(Global_HUD_Txd[1], 1); TextDrawColor(Global_HUD_Txd[1], -1); TextDrawSetShadow(Global_HUD_Txd[1], 0); TextDrawSetOutline(Global_HUD_Txd[1], 0); TextDrawBackgroundColor(Global_HUD_Txd[1], 255); TextDrawFont(Global_HUD_Txd[1], 4); TextDrawSetProportional(Global_HUD_Txd[1], 0); TextDrawSetShadow(Global_HUD_Txd[1], 0); Global_HUD_Txd[2] = TextDrawCreate(142.500030, 431.900024, "LD_SPAC:white"); TextDrawLetterSize(Global_HUD_Txd[2], 0.000000, 0.000000); TextDrawTextSize(Global_HUD_Txd[2], 63.000000, 6.500011); TextDrawAlignment(Global_HUD_Txd[2], 1); TextDrawColor(Global_HUD_Txd[2], 255); TextDrawSetShadow(Global_HUD_Txd[2], 0); TextDrawSetOutline(Global_HUD_Txd[2], 0); TextDrawBackgroundColor(Global_HUD_Txd[2], 255); TextDrawFont(Global_HUD_Txd[2], 4); TextDrawSetProportional(Global_HUD_Txd[2], 0); TextDrawSetShadow(Global_HUD_Txd[2], 0); Global_HUD_Txd[3] = TextDrawCreate(143.449966, 432.800048, "LD_SPAC:white"); TextDrawLetterSize(Global_HUD_Txd[3], 0.000000, 0.000000); TextDrawTextSize(Global_HUD_Txd[3], 61.000000, 4.749994); TextDrawAlignment(Global_HUD_Txd[3], 1); TextDrawColor(Global_HUD_Txd[3], 842150655); TextDrawSetShadow(Global_HUD_Txd[3], 0); TextDrawSetOutline(Global_HUD_Txd[3], 0); TextDrawBackgroundColor(Global_HUD_Txd[3], 255); TextDrawFont(Global_HUD_Txd[3], 4); TextDrawSetProportional(Global_HUD_Txd[3], 0); TextDrawSetShadow(Global_HUD_Txd[3], 0); Global_HUD_Txd[4] = TextDrawCreate(213.000000, 431.650085, "hud:radar_dateFood"); TextDrawLetterSize(Global_HUD_Txd[4], 0.000000, 0.000000); TextDrawTextSize(Global_HUD_Txd[4], 7.000000, 7.000000); TextDrawAlignment(Global_HUD_Txd[4], 1); TextDrawColor(Global_HUD_Txd[4], -1); TextDrawSetShadow(Global_HUD_Txd[4], 0); TextDrawSetOutline(Global_HUD_Txd[4], 0); TextDrawBackgroundColor(Global_HUD_Txd[4], 255); TextDrawFont(Global_HUD_Txd[4], 4); TextDrawSetProportional(Global_HUD_Txd[4], 0); TextDrawSetShadow(Global_HUD_Txd[4], 0); Global_HUD_Txd[5] = TextDrawCreate(222.000000, 432.000000, "LD_SPAC:white"); TextDrawLetterSize(Global_HUD_Txd[5], 0.000000, 0.000000); TextDrawTextSize(Global_HUD_Txd[5], 63.000000, 6.500011); TextDrawAlignment(Global_HUD_Txd[5], 1); TextDrawColor(Global_HUD_Txd[5], 255); TextDrawSetShadow(Global_HUD_Txd[5], 0); TextDrawSetOutline(Global_HUD_Txd[5], 0); TextDrawBackgroundColor(Global_HUD_Txd[5], 255); TextDrawFont(Global_HUD_Txd[5], 4); TextDrawSetProportional(Global_HUD_Txd[5], 0); TextDrawSetShadow(Global_HUD_Txd[5], 0); Global_HUD_Txd[6] = TextDrawCreate(222.699981, 432.800048, "LD_SPAC:white"); TextDrawLetterSize(Global_HUD_Txd[6], 0.000000, 0.000000); TextDrawTextSize(Global_HUD_Txd[6], 61.000000, 4.749994); TextDrawAlignment(Global_HUD_Txd[6], 1); TextDrawColor(Global_HUD_Txd[6], 842150655); TextDrawSetShadow(Global_HUD_Txd[6], 0); TextDrawSetOutline(Global_HUD_Txd[6], 0); TextDrawBackgroundColor(Global_HUD_Txd[6], 255); TextDrawFont(Global_HUD_Txd[6], 4); TextDrawSetProportional(Global_HUD_Txd[6], 0); TextDrawSetShadow(Global_HUD_Txd[6], 0);
C:\Users\Lukasz\Desktop\comp\ltrpg.pwntonrpg\gamemodes(210) : error 032: array index out of bounds (variable "Global_HUD_Txd") C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(211) : error 032: array index out of bounds (variable "Global_HUD_Txd") C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(212) : error 032: array index out of bounds (variable "Global_HUD_Txd") C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(213) : error 032: array index out of bounds (variable "Global_HUD_Txd") C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(214) : error 032: array index out of bounds (variable "Global_HUD_Txd") C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(215) : error 032: array index out of bounds (variable "Global_HUD_Txd") C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(216) : error 032: array index out of bounds (variable "Global_HUD_Txd") C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(217) : error 032: array index out of bounds (variable "Global_HUD_Txd") C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(218) : error 032: array index out of bounds (variable "Global_HUD_Txd") C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(219) : error 032: array index out of bounds (variable "Global_HUD_Txd") C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(220) : error 032: array index out of bounds (variable "Global_HUD_Txd") C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(230) : error 010: invalid function or declaration C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(233) : error 010: invalid function or declaration C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(236) : error 010: invalid function or declaration C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(238) : error 010: invalid function or declaration C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(239) : error 010: invalid function or declaration C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(243) : error 001: expected token: ";", but found "-integer value-" C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(245) : error 010: invalid function or declaration C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(248) : error 021: symbol already defined: "SendClientMessage" C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(252) : error 010: invalid function or declaration C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(253) : error 010: invalid function or declaration C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(254) : error 010: invalid function or declaration C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(262) : error 017: undefined symbol "Player_HUD_Txd" C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(262) : warning 215: expression has no effect C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(262) : error 001: expected token: ";", but found "]" C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(262) : error 029: invalid expression, assumed zero C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(262) : fatal error 107: too many error messages on one line
new Text:Global_HUD_Txd;
new Text:Global_HUD_Txd[7];
Global_HUD_Txd[0] = TextDrawCreate....
Global_HUD_Txd[1] = TextDrawCreate....
Global_HUD_Txd[2.....
new Text:Global_HUD_Txd[7];
public OnGameModeInit()
Global_HUD_Txd[6] = TextDrawCreate(222.699981, 432.800048, "LD_SPAC:white"); TextDrawLetterSize(Global_HUD_Txd[6], 0.000000, 0.000000); TextDrawTextSize(Global_HUD_Txd[6], 61.000000, 4.749994); TextDrawAlignment(Global_HUD_Txd[6], 1); TextDrawColor(Global_HUD_Txd[6], 842150655); TextDrawSetShadow(Global_HUD_Txd[6], 0); TextDrawSetOutline(Global_HUD_Txd[6], 0); TextDrawBackgroundColor(Global_HUD_Txd[6], 255); TextDrawFont(Global_HUD_Txd[6], 4); TextDrawSetProportional(Global_HUD_Txd[6], 0); TextDrawSetShadow(Global_HUD_Txd[6], 0); return 1; } public OnGameModeExit() { return 1; } ptask Timer_XP[XP_TIME](playerid) { GivePlayerXP(playerid, XP_VALUE); return 1; } ptask Timer_Hunger[18000](playerid) // 1sec - 1000, 1min - 60000, 3min - 180000 { if(!Spawned[playerid]) return 1; if(PlayerInfo[playerid][pThirst] <= 0 || PlayerInfo[playerid][pHunger] <= 0) { new Float:health, Float:damage = float(5 + random(5)); GetPlayerHealth(playerid, health); if(health <= damage) { // dabar nuimsim jau visas HP SendClientMessage(playerid, 0xBABABAFF, "Mir?te d?l tro?kulio arba alkio."); } SetPlayerHealth(playerid, health - damage); } if(PlayerInfo[playerid][pHunger] > 0) SetHungerLevel(playerid, PlayerInfo[playerid][pHunger] - 1 + random(2)); if(PlayerInfo[playerid][pThirst] > 0) SetThirstLevel(playerid, PlayerInfo[playerid][pThirst] - 1 + random(2)); return 1; } stock UpdateXPString(playerid) { new string[42]; format(string, sizeof string, "XP:_%d/%d___LYGIS:_%d", PlayerInfo[playerid][pXP], (PlayerInfo[playerid][pLevel] + 1) * XP_DIFFERENCE_PER_LEVEL, PlayerInfo[playerid][pLevel]); PlayerTextDrawSetString(playerid, Player_HUD_Txd[playerid][0], string); return 1; }
new Text:Global_HUD_Txd[7];
new Text:Global_HUD_Txd[8];
PlayerTextDrawSetString(playerid, Player_HUD_Txd[playerid][0], string);
Player_HUD_Txd [playerid] [0]
Player_HUD_Txd [0]
new Text:Global_HUD_Txd[7]; new PlayerText:Player_HUD_Txd[MAX_PLAYERS][3];
C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(231) : error 010: invalid function or declaration C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(234) : error 010: invalid function or declaration C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(237) : error 010: invalid function or declaration C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(239) : error 010: invalid function or declaration C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(240) : error 010: invalid function or declaration C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(244) : error 001: expected token: ";", but found "-integer value-" C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(246) : error 010: invalid function or declaration C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(249) : error 021: symbol already defined: "SendClientMessage" C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(253) : error 010: invalid function or declaration C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(254) : error 010: invalid function or declaration C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(255) : error 010: invalid function or declaration C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(282) : error 025: function heading differs from prototype C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(422) : error 001: expected token: ";", but found ")" C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(425) : error 021: symbol already defined: "UpdateXPString" C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(426) : error 021: symbol already defined: "UpdateHungerBar" C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(427) : error 021: symbol already defined: "UpdateThirstBar" C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(429) : error 010: invalid function or declaration C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(435) : error 010: invalid function or declaration C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(436) : error 010: invalid function or declaration C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(437) : error 010: invalid function or declaration C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(244) : warning 203: symbol is never used: "damage" C:\Users\Lukasz\Desktop\comptonrpg\gamemodes\ltrpg.pwn(243) : warning 203: symbol is never used: "health"
new Text:Global_HUD_Txd[7];