Szerző Téma: Még mindig infoboard  (Megtekintve 985 alkalommal)

Nem elérhető Flips

Még mindig infoboard
« Dátum: 2016. szeptember 30. - 19:32:29 »
0 Show voters
Üdv! Tudom hogy ilyesmit egyszer már kérdeztem de ez más fajta hiba és az előzőt sikerült javítani. Most olyan problémám van hogyha felmegy egy játékos pl. ID 0 annak létrehozza a textdrawot, ha felmegy még egy ID 1 akkor arra rárakja az ID 1 -es textdrawját is vagyis ID 0 egyszerre 2 textdrawot lát egyiket a másikon viszont ID 1 meg csak a sajátját ha feljön ID 2 akkor ID 0 3-mat lát ID 1 pedig 2-t ID 2 pedig csak sajátját és így tovább. Valaki erre valami megoldást?
Mod eleje:
 
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];

 
OnPlayerSpawn:
 
   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]);
}
}

 
OnPlayerUpdate:
 
   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);

Még mindig infoboard
« Válasz #1 Dátum: 2016. szeptember 30. - 22:53:05 »
0 Show voters
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.

Nem elérhető Flips

Még mindig infoboard
« Válasz #2 Dátum: 2016. szeptember 30. - 23:19:53 »
0 Show voters
Idézetet írta: zsoolt997 date=1475268785\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"63251\" data-ipsquote-contentclass=\"forums_Topic
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.
 
Multkor kaptam rá egy-két error-t és warningot vagyis eléggé sokat végül hiába javítottam mintha csak több lett volna, kipróbálom 10 perc és rá érek aztán ha megint kapok valami errort/warningot bemásolom hátha tudsz abban is segíteni. Köszi a választ!
Esetleg erre nem tudsz ránézni? Nagyon megköszönném!
https://sampforum.hu/index.php?topic=68070.0

Dupla hozzászólás automatikusan összefûzve. ( [time]2016. szeptember 30. 23:55:31[/time] )

E:\\SAMP\\PPC\\pawno\\include\\fixchars.inc(144) : warning 213: tag mismatch
E:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21619) : warning 213: tag mismatch
E:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21620) : warning 213: tag mismatch
E:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21621) : warning 213: tag mismatch
E:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21622) : warning 213: tag mismatch
E:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21623) : warning 213: tag mismatch
E:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21624) : warning 213: tag mismatch
E:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21625) : warning 213: tag mismatch
E:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21626) : warning 213: tag mismatch
E:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21628) : warning 213: tag mismatch
E:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21641) : warning 213: tag mismatch
E:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21654) : warning 213: tag mismatch
E:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21660) : warning 213: tag mismatch
E:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21660) : warning 213: tag mismatch
E:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21660) : warning 202: number of arguments does not match definition
E:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21667) : warning 213: tag mismatch
E:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21680) : warning 213: tag mismatch
E:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21693) : warning 213: tag mismatch
E:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21706) : warning 213: tag mismatch
E:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21719) : warning 213: tag mismatch
E:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21740) : warning 213: tag mismatch

 

Dupla hozzászólás automatikusan összefûzve. ( [time]2016. szeptember 30. 23:58:13[/time] )

21619-21746
 
   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]);
}
}

 
fixchars(140-148):
 
#if defined CreatePlayerTextDraw
stock fixchars_CreatePlayerTextDraw(playerid, Float:x, Float:y, text[])
{
fixchars(text);
return CreatePlayerTextDraw(playerid, x, y, text);
}
#define CreatePlayerTextDraw fixchars_CreatePlayerTextDraw
#endif
« Utoljára szerkesztve: 2016. szeptember 30. - 23:59:57 írta Flips »

Még mindig infoboard
« Válasz #3 Dátum: 2016. október 01. - 09:02:42 »
0 Show voters
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];

Nem elérhető Flips

Még mindig infoboard
« Válasz #4 Dátum: 2016. október 01. - 09:43:51 »
0 Show voters
Idézetet írta: zsoolt997 date=1475305362\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"63251\" data-ipsquote-contentclass=\"forums_Topic
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];

 

Helló! Kicseréltem azonban még mindig kapom a warningokat.
 
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 mismatch
E:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21619) : warning 213: tag mismatch
E:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21628) : warning 213: tag mismatch
E:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21641) : warning 213: tag mismatch
E:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21654) : warning 213: tag mismatch
E:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21667) : warning 213: tag mismatch
E:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21680) : warning 213: tag mismatch
E:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21693) : warning 213: tag mismatch
E:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21706) : warning 213: tag mismatch
E:\\SAMP\\PPC\\gamemodes\\ppctruck.pwn(21719) : warning 213: tag mismatch
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase
 
10 Warnings.

 
Sorok ahol hiba van:
 
   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, \" \");

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal