new Text:Jatnev[MAX_PLAYERS];new Text:Korozes[MAX_PLAYERS];new Text:Bank[MAX_PLAYERS];new Text:Pont[MAX_PLAYERS];new Text:PID[MAX_PLAYERS];new Text:VIPN[MAX_PLAYERS];new Text:ADN[MAX_PLAYERS];new Text:Rang[MAX_PLAYERS];new Text:szname[MAX_PLAYERS];
new text[41];new wantedlevel;wantedlevel = GetPlayerWantedLevel(playerid);new jatekosname[MAX_PLAYER_NAME];GetPlayerName(playerid, jatekosname, sizeof(jatekosname));szname[playerid] = TextDrawCreate(338.000000, 400.000000, \"Hungarian Truckers v1.5\");TextDrawAlignment(szname[playerid], 2);TextDrawBackgroundColor(szname[playerid], 16777215);TextDrawFont(szname[playerid], 2);TextDrawLetterSize(szname[playerid], 0.500000, 1.399999);TextDrawColor(szname[playerid], 65535);TextDrawSetOutline(szname[playerid], 1);TextDrawSetProportional(szname[playerid], 1);Jatnev[playerid] = TextDrawCreate(500.000000, 134.000000, \" \");TextDrawBackgroundColor(Jatnev[playerid], 255);TextDrawFont(Jatnev[playerid], 2);TextDrawLetterSize(Jatnev[playerid], 0.230000, 1.100000);TextDrawColor(Jatnev[playerid], -1);TextDrawSetOutline(Jatnev[playerid], 1);TextDrawSetProportional(Jatnev[playerid], 1);TextDrawUseBox(Jatnev[playerid], 1);TextDrawBoxColor(Jatnev[playerid], 100);TextDrawTextSize(Jatnev[playerid], 637.000000, 1.000000);format(text, 20, \"~g~Név: ~r~%s\", jatekosname);TextDrawSetString(Jatnev[playerid], text);Korozes[playerid] = TextDrawCreate(500.000000, 148.500000, \" \");TextDrawBackgroundColor(Korozes[playerid], 255);TextDrawFont(Korozes[playerid], 2);TextDrawLetterSize(Korozes[playerid], 0.230000, 1.100000);TextDrawColor(Korozes[playerid], -1);TextDrawSetOutline(Korozes[playerid], 1);TextDrawSetProportional(Korozes[playerid], 1);TextDrawUseBox(Korozes[playerid], 1);TextDrawBoxColor(Korozes[playerid], 100);TextDrawTextSize(Korozes[playerid], 637.000000, 1.000000);format(text, 20, \"~g~Körözéseid: ~r~%i\", wantedlevel);TextDrawSetString(Korozes[playerid], text);Bank[playerid] = TextDrawCreate(500.000000, 163.000000, \" \");TextDrawBackgroundColor(Bank[playerid], 255);TextDrawFont(Bank[playerid], 2);TextDrawLetterSize(Bank[playerid], 0.230000, 1.100000);TextDrawColor(Bank[playerid], -1);TextDrawSetOutline(Bank[playerid], 1);TextDrawSetProportional(Bank[playerid], 1);TextDrawUseBox(Bank[playerid], 1);TextDrawBoxColor(Bank[playerid], 100);TextDrawTextSize(Bank[playerid], 637.000000, 8.000000);format(text, sizeof(text), \"~g~Bankod: ~r~%i$\", APlayerData[playerid][bankMoney]);TextDrawSetString(Bank[playerid], text);Pont[playerid] = TextDrawCreate(500.000000, 177.500000, \" \");TextDrawBackgroundColor(Pont[playerid], 255);TextDrawFont(Pont[playerid], 2);TextDrawLetterSize(Pont[playerid], 0.230000, 1.100000);TextDrawColor(Pont[playerid], -1);TextDrawSetOutline(Pont[playerid], 1);TextDrawSetProportional(Pont[playerid], 1);TextDrawUseBox(Pont[playerid], 1);TextDrawBoxColor(Pont[playerid], 100);TextDrawTextSize(Pont[playerid], 637.000000, 0.000000);format(text, sizeof(text), \"~g~Pontjaid: ~r~%i\", GetPlayerScore(playerid));TextDrawSetString(Pont[playerid], text);Rang[playerid] = TextDrawCreate(500.000000, 192.000000, \" \");TextDrawBackgroundColor(Rang[playerid], 255);TextDrawFont(Rang[playerid], 2);TextDrawLetterSize(Rang[playerid], 0.230000, 1.100000);TextDrawColor(Rang[playerid], -1);TextDrawSetOutline(Rang[playerid], 1);TextDrawSetProportional(Rang[playerid], 1);TextDrawUseBox(Rang[playerid], 1);TextDrawBoxColor(Rang[playerid], 100);TextDrawTextSize(Rang[playerid], 637.000000, 0.000000);// format(text, sizeof(text), \"~g~Rankod: ~r~%s\", Rang[playerid]);// TextDrawSetString(Rang[playerid], text);VIPN[playerid] = TextDrawCreate(500.000000, 206.600000, \" \");TextDrawBackgroundColor(VIPN[playerid], 255);TextDrawFont(VIPN[playerid], 2);TextDrawLetterSize(VIPN[playerid], 0.230000, 1.100000);TextDrawColor(VIPN[playerid], -1);TextDrawSetOutline(VIPN[playerid], 1);TextDrawSetProportional(VIPN[playerid], 1);TextDrawUseBox(VIPN[playerid], 1);TextDrawBoxColor(VIPN[playerid], 100);TextDrawTextSize(VIPN[playerid], 637.000000, 1.000000);format(text, sizeof(text), \"~g~VIP: ~r~%s\", VipLevelName[APlayerData[playerid][PlayerVip]]);TextDrawSetString(VIPN[playerid], text);ADN[playerid] = TextDrawCreate(500.000000, 221.100000, \" \");TextDrawBackgroundColor(ADN[playerid], 255);TextDrawFont(ADN[playerid], 2);TextDrawLetterSize(ADN[playerid], 0.230000, 1.100000);TextDrawColor(ADN[playerid], -1);TextDrawSetOutline(ADN[playerid], 1);TextDrawSetProportional(ADN[playerid], 1);TextDrawUseBox(ADN[playerid], 1);TextDrawBoxColor(ADN[playerid], 100);TextDrawTextSize(ADN[playerid], 637.000000, 1.000000);format(text, sizeof(text), \"~g~Admin: ~r~%s\", AdminLevelName[APlayerData[playerid][PlayerLevel]]);TextDrawSetString(ADN[playerid], text);PID[playerid] = TextDrawCreate(500.000000, 235.600000, \" \");TextDrawBackgroundColor(PID[playerid], 255);TextDrawFont(PID[playerid], 2);TextDrawLetterSize(PID[playerid], 0.230000, 1.100000);TextDrawColor(PID[playerid], -1);TextDrawSetOutline(PID[playerid], 1);TextDrawSetProportional(PID[playerid], 1);TextDrawUseBox(PID[playerid], 1);TextDrawBoxColor(PID[playerid], 100);TextDrawTextSize(PID[playerid], 637.000000, 1.000000);format(text, sizeof(text), \"~g~ID: ~r~%i\", playerid);TextDrawSetString(PID[playerid], text);for(new i; i < MAX_PLAYERS; i ++){if(IsPlayerConnected(i)){ TextDrawShowForPlayer(i, Korozes[playerid]); TextDrawShowForPlayer(i, Bank[playerid]); TextDrawShowForPlayer(i, Pont[playerid]); TextDrawShowForPlayer(i, PID[playerid]); TextDrawShowForPlayer(i, szname[playerid]); TextDrawShowForPlayer(i, Jatnev[playerid]); TextDrawShowForPlayer(i, Rang[playerid]); TextDrawShowForPlayer(i, VIPN[playerid]); TextDrawShowForPlayer(i, ADN[playerid]);}}
new score;new text[41];new wantedlevel;wantedlevel = GetPlayerWantedLevel(playerid);score = GetPlayerScore(playerid);format(text, sizeof(text), \"~g~Pontjaid: ~r~%i\", score);TextDrawSetString(Pont[playerid], text);format(text, 20, \"~g~Körözéseid: ~r~%i\", wantedlevel);TextDrawSetString(Korozes[playerid], text);format(text, sizeof(text), \"~g~Bankod: ~r~%i$\", APlayerData[playerid][bankMoney]);TextDrawSetString(Bank[playerid], text);format(text, sizeof(text), \"~g~ID: ~r~%i\", playerid);TextDrawSetString(PID[playerid], text);format(text, sizeof(text), \"~g~VIP: ~r~%s\", VipLevelName[APlayerData[playerid][PlayerVip]]);TextDrawSetString(VIPN[playerid], text);format(text, sizeof(text), \"~g~Admin: ~r~%s\", AdminLevelName[APlayerData[playerid][PlayerLevel]]);TextDrawSetString(ADN[playerid], text);
Azt hiszem, az előző témádba is írtam, ugyanezt. Használj PlayerTextDrawokat. Akkor csak annak a játékosnak hozza létre/mutatja meg/tünteti el stb., akit megadsz.
E:\\SAMP\\PPC\\pawno\\include\\fixchars.inc(144) : warning 213: tag mismatchE:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21619) : warning 213: tag mismatchE:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21620) : warning 213: tag mismatchE:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21621) : warning 213: tag mismatchE:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21622) : warning 213: tag mismatchE:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21623) : warning 213: tag mismatchE:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21624) : warning 213: tag mismatchE:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21625) : warning 213: tag mismatchE:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21626) : warning 213: tag mismatchE:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21628) : warning 213: tag mismatchE:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21641) : warning 213: tag mismatchE:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21654) : warning 213: tag mismatchE:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21660) : warning 213: tag mismatchE:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21660) : warning 213: tag mismatchE:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21660) : warning 202: number of arguments does not match definitionE:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21667) : warning 213: tag mismatchE:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21680) : warning 213: tag mismatchE:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21693) : warning 213: tag mismatchE:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21706) : warning 213: tag mismatchE:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21719) : warning 213: tag mismatchE:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21740) : warning 213: tag mismatch
szname[playerid] = CreatePlayerTextDraw(playerid, 338.000000, 400.000000, \"Hungarian Truckers v1.5\");PlayerTextDrawAlignment(playerid, szname[playerid], 2);PlayerTextDrawBackgroundColor(playerid, szname[playerid], 16777215);PlayerTextDrawFont(playerid, szname[playerid], 2);PlayerTextDrawLetterSize(playerid, szname[playerid], 0.500000, 1.399999);PlayerTextDrawColor(playerid, szname[playerid], 65535);PlayerTextDrawSetOutline(playerid, szname[playerid], 1);PlayerTextDrawSetProportional(playerid, szname[playerid], 1);Jatnev[playerid] = CreatePlayerTextDraw(playerid, 500.000000, 134.000000, \" \");PlayerTextDrawBackgroundColor(playerid, Jatnev[playerid], 255);PlayerTextDrawFont(playerid, Jatnev[playerid], 2);PlayerTextDrawLetterSize(playerid, Jatnev[playerid], 0.230000, 1.100000);PlayerTextDrawColor(playerid, Jatnev[playerid], -1);PlayerTextDrawSetOutline(playerid, Jatnev[playerid], 1);PlayerTextDrawSetProportional(playerid, Jatnev[playerid], 1);PlayerTextDrawUseBox(playerid, Jatnev[playerid], 1);PlayerTextDrawBoxColor(playerid, Jatnev[playerid], 100);PlayerTextDrawTextSize(playerid, Jatnev[playerid], 637.000000, 1.000000);format(text, 20, \"~g~Név: ~r~%s\", jatekosname);PlayerTextDrawSetString(playerid, Jatnev[playerid], text);Korozes[playerid] = CreatePlayerTextDraw(playerid, 500.000000, 148.500000, \" \");PlayerTextDrawBackgroundColor(playerid, Korozes[playerid], 255);PlayerTextDrawFont(playerid, Korozes[playerid], 2);PlayerTextDrawLetterSize(playerid, Korozes[playerid], 0.230000, 1.100000);PlayerTextDrawColor(playerid, Korozes[playerid], -1);PlayerTextDrawSetOutline(playerid, Korozes[playerid], 1);PlayerTextDrawSetProportional(playerid, Korozes[playerid], 1);PlayerTextDrawUseBox(playerid, Korozes[playerid], 1);PlayerTextDrawBoxColor(playerid, Korozes[playerid], 100);PlayerTextDrawTextSize(playerid, Korozes[playerid], 637.000000, 1.000000);format(text, 20, \"~g~Körözéseid: ~r~%i\", wantedlevel);PlayerTextDrawSetString(playerid, Korozes[playerid], text);Bank[playerid] = CreatePlayerTextDraw(playerid, 500.000000, 163.000000, \" \");PlayerTextDrawBackgroundColor(playerid, Bank[playerid], 255);PlayerTextDrawFont(playerid, Bank[playerid], 2);PlayerTextDrawLetterSize(playerid, Bank[playerid], 0.230000, 1.100000);PlayerTextDrawColor(playerid, Bank[playerid], -1);PlayerTextDrawSetOutline(playerid, Bank[playerid], 1);PlayerTextDrawSetProportional(Bank[playerid], 1);PlayerTextDrawUseBox(playerid, Bank[playerid], 1);PlayerTextDrawBoxColor(playerid, Bank[playerid], 100);PlayerTextDrawTextSize(playerid, Bank[playerid], 637.000000, 8.000000);format(text, sizeof(text), \"~g~Bankod: ~r~%i$\", APlayerData[playerid][bankMoney]);PlayerTextDrawSetString(playerid, Bank[playerid], text);Pont[playerid] = CreatePlayerTextDraw(playerid, 500.000000, 177.500000, \" \");PlayerTextDrawBackgroundColor(playerid, Pont[playerid], 255);PlayerTextDrawFont(playerid, Pont[playerid], 2);PlayerTextDrawLetterSize(playerid, Pont[playerid], 0.230000, 1.100000);PlayerTextDrawColor(playerid, Pont[playerid], -1);PlayerTextDrawSetOutline(playerid, Pont[playerid], 1);PlayerTextDrawSetProportional(playerid, Pont[playerid], 1);PlayerTextDrawUseBox(playerid, Pont[playerid], 1);PlayerTextDrawBoxColor(playerid, Pont[playerid], 100);PlayerTextDrawTextSize(playerid, Pont[playerid], 637.000000, 0.000000);format(text, sizeof(text), \"~g~Pontjaid: ~r~%i\", GetPlayerScore(playerid));PlayerTextDrawSetString(playerid, Pont[playerid], text);Rang[playerid] = CreatePlayerTextDraw(playerid, 500.000000, 192.000000, \" \");PlayerTextDrawBackgroundColor(playerid, Rang[playerid], 255);PlayerTextDrawFont(playerid, Rang[playerid], 2);PlayerTextDrawLetterSize(playerid, Rang[playerid], 0.230000, 1.100000);PlayerTextDrawColor(playerid, Rang[playerid], -1);PlayerTextDrawSetOutline(playerid, Rang[playerid], 1);PlayerTextDrawSetProportional(playerid, Rang[playerid], 1);PlayerTextDrawUseBox(playerid, Rang[playerid], 1);PlayerTextDrawBoxColor(playerid, Rang[playerid], 100);PlayerTextDrawTextSize(playerid, Rang[playerid], 637.000000, 0.000000);// format(text, sizeof(text), \"~g~Rankod: ~r~%s\", Rang[playerid]);// TextDrawSetString(Rang[playerid], text);VIPN[playerid] = CreatePlayerTextDraw(playerid, 500.000000, 206.600000, \" \");PlayerTextDrawBackgroundColor(playerid, VIPN[playerid], 255);PlayerTextDrawFont(playerid, VIPN[playerid], 2);PlayerTextDrawLetterSize(playerid, VIPN[playerid], 0.230000, 1.100000);PlayerTextDrawColor(playerid, VIPN[playerid], -1);PlayerTextDrawSetOutline(playerid, VIPN[playerid], 1);PlayerTextDrawSetProportional(playerid, VIPN[playerid], 1);PlayerTextDrawUseBox(playerid, VIPN[playerid], 1);PlayerTextDrawBoxColor(playerid, VIPN[playerid], 100);PlayerTextDrawTextSize(playerid, VIPN[playerid], 637.000000, 1.000000);format(text, sizeof(text), \"~g~VIP: ~r~%s\", VipLevelName[APlayerData[playerid][PlayerVip]]);PlayerTextDrawSetString(playerid, VIPN[playerid], text);ADN[playerid] = CreatePlayerTextDraw(playerid, 500.000000, 221.100000, \" \");PlayerTextDrawBackgroundColor(playerid, ADN[playerid], 255);PlayerTextDrawFont(playerid, ADN[playerid], 2);PlayerTextDrawLetterSize(playerid, ADN[playerid], 0.230000, 1.100000);PlayerTextDrawColor(playerid, ADN[playerid], -1);PlayerTextDrawSetOutline(playerid, ADN[playerid], 1);PlayerTextDrawSetProportional(playerid, ADN[playerid], 1);PlayerTextDrawUseBox(playerid, ADN[playerid], 1);PlayerTextDrawBoxColor(playerid, ADN[playerid], 100);PlayerTextDrawTextSize(playerid, ADN[playerid], 637.000000, 1.000000);format(text, sizeof(text), \"~g~Admin: ~r~%s\", AdminLevelName[APlayerData[playerid][PlayerLevel]]);PlayerTextDrawSetString(playerid, ADN[playerid], text);PID[playerid] = CreatePlayerTextDraw(playerid, 500.000000, 235.600000, \" \");PlayerTextDrawBackgroundColor(playerid, PID[playerid], 255);PlayerTextDrawFont(playerid, PID[playerid], 2);PlayerTextDrawLetterSize(playerid, PID[playerid], 0.230000, 1.100000);PlayerTextDrawColor(playerid, PID[playerid], -1);PlayerTextDrawSetOutline(playerid, PID[playerid], 1);PlayerTextDrawSetProportional(playerid, PID[playerid], 1);PlayerTextDrawUseBox(playerid, PID[playerid], 1);PlayerTextDrawBoxColor(playerid, PID[playerid], 100);PlayerTextDrawTextSize(playerid, PID[playerid], 637.000000, 1.000000);format(text, sizeof(text), \"~g~ID: ~r~%i\", playerid);PlayerTextDrawSetString(playerid, PID[playerid], text);for(new i; i < MAX_PLAYERS; i ++){if(IsPlayerConnected(i)){ PlayerTextDrawShow(i, Korozes[playerid]); PlayerTextDrawShow(i, Bank[playerid]); PlayerTextDrawShow(i, Pont[playerid]); PlayerTextDrawShow(i, PID[playerid]); PlayerTextDrawShow(i, szname[playerid]); PlayerTextDrawShow(i, Jatnev[playerid]); PlayerTextDrawShow(i, Rang[playerid]); PlayerTextDrawShow(i, VIPN[playerid]); PlayerTextDrawShow(i, ADN[playerid]);}}
#if defined CreatePlayerTextDrawstock fixchars_CreatePlayerTextDraw(playerid, Float:x, Float:y, text[]){fixchars(text);return CreatePlayerTextDraw(playerid, x, y, text);}#define CreatePlayerTextDraw fixchars_CreatePlayerTextDraw#endif
new PlayerText:Jatnev[MAX_PLAYERS];new PlayerText:Korozes[MAX_PLAYERS];new PlayerText:Bank[MAX_PLAYERS];new PlayerText:Pont[MAX_PLAYERS];new PlayerText:PID[MAX_PLAYERS];new PlayerText:VIPN[MAX_PLAYERS];new PlayerText:ADN[MAX_PLAYERS];new PlayerText:Rang[MAX_PLAYERS];new PlayerText:szname[MAX_PLAYERS];
A sok warningot kiküszöbölheted úgy, hogy amikor létrehozod a textdrawoknak a változókat, akkor nem \"Text:\" előtagot írsz, hanem \"PlayerText:\" előtagot.Ezeket new Text:Jatnev[MAX_PLAYERS];new Text:Korozes[MAX_PLAYERS];new Text:Bank[MAX_PLAYERS];new Text:Pont[MAX_PLAYERS];new Text:PID[MAX_PLAYERS];new Text:VIPN[MAX_PLAYERS];new Text:ADN[MAX_PLAYERS];new Text:Rang[MAX_PLAYERS];new Text:szname[MAX_PLAYERS]; erre cseréld ki new PlayerText:Jatnev[MAX_PLAYERS];new PlayerText:Korozes[MAX_PLAYERS];new PlayerText:Bank[MAX_PLAYERS];new PlayerText:Pont[MAX_PLAYERS];new PlayerText:PID[MAX_PLAYERS];new PlayerText:VIPN[MAX_PLAYERS];new PlayerText:ADN[MAX_PLAYERS];new PlayerText:Rang[MAX_PLAYERS];new PlayerText:szname[MAX_PLAYERS];
E:\\SAMP\\PPC\\pawno\\include\\fixchars.inc(144) : warning 213: tag mismatchE:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21619) : warning 213: tag mismatchE:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21628) : warning 213: tag mismatchE:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21641) : warning 213: tag mismatchE:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21654) : warning 213: tag mismatchE:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21667) : warning 213: tag mismatchE:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21680) : warning 213: tag mismatchE:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21693) : warning 213: tag mismatchE:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21706) : warning 213: tag mismatchE:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21719) : warning 213: tag mismatchPawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 10 Warnings.
szname[playerid] = CreatePlayerTextDraw(playerid, 338.000000, 400.000000, \"Hungarian Truckers v1.5\");Jatnev[playerid] = CreatePlayerTextDraw(playerid, 500.000000, 134.000000, \" \");Korozes[playerid] = CreatePlayerTextDraw(playerid, 500.000000, 148.500000, \" \");Bank[playerid] = CreatePlayerTextDraw(playerid, 500.000000, 163.000000, \" \");Pont[playerid] = CreatePlayerTextDraw(playerid, 500.000000, 177.500000, \" \");Rang[playerid] = CreatePlayerTextDraw(playerid, 500.000000, 192.000000, \" \");VIPN[playerid] = CreatePlayerTextDraw(playerid, 500.000000, 206.600000, \" \");ADN[playerid] = CreatePlayerTextDraw(playerid, 500.000000, 221.100000, \" \");PID[playerid] = CreatePlayerTextDraw(playerid, 500.000000, 235.600000, \" \");