Pls help fix error (undefined symbol "playerid")
#1

Error:
C:\Users\Nikita\Desktop\fierroLife\fierroLife\game modes\fierrolife.pwn(341) : error 017: undefined symbol "playerid"
C:\Users\Nikita\Desktop\fierroLife\fierroLife\game modes\fierrolife.pwn(342) : error 017: undefined symbol "playerid"
C:\Users\Nikita\Desktop\fierroLife\fierroLife\game modes\fierrolife.pwn(343) : error 017: undefined symbol "playerid"
C:\Users\Nikita\Desktop\fierroLife\fierroLife\game modes\fierrolife.pwn(344) : error 017: undefined symbol "playerid"
C:\Users\Nikita\Desktop\fierroLife\fierroLife\game modes\fierrolife.pwn(345) : error 017: undefined symbol "playerid"
C:\Users\Nikita\Desktop\fierroLife\fierroLife\game modes\fierrolife.pwn(346) : error 017: undefined symbol "playerid"
C:\Users\Nikita\Desktop\fierroLife\fierroLife\game modes\fierrolife.pwn(347) : error 017: undefined symbol "playerid"
C:\Users\Nikita\Desktop\fierroLife\fierroLife\game modes\fierrolife.pwn(34 : error 017: undefined symbol "playerid"
C:\Users\Nikita\Desktop\fierroLife\fierroLife\game modes\fierrolife.pwn(349) : error 017: undefined symbol "playerid"
C:\Users\Nikita\Desktop\fierroLife\fierroLife\game modes\fierrolife.pwn(350) : error 017: undefined symbol "playerid"
C:\Users\Nikita\Desktop\fierroLife\fierroLife\game modes\fierrolife.pwn(351) : error 017: undefined symbol "playerid"
C:\Users\Nikita\Desktop\fierroLife\fierroLife\game modes\fierrolife.pwn(353) : error 017: undefined symbol "playerid"
C:\Users\Nikita\Desktop\fierroLife\fierroLife\game modes\fierrolife.pwn(354) : error 017: undefined symbol "playerid"
C:\Users\Nikita\Desktop\fierroLife\fierroLife\game modes\fierrolife.pwn(355) : error 017: undefined symbol "playerid"
C:\Users\Nikita\Desktop\fierroLife\fierroLife\game modes\fierrolife.pwn(356) : error 017: undefined symbol "playerid"
C:\Users\Nikita\Desktop\fierroLife\fierroLife\game modes\fierrolife.pwn(357) : error 017: undefined symbol "playerid"
C:\Users\Nikita\Desktop\fierroLife\fierroLife\game modes\fierrolife.pwn(35 : error 017: undefined symbol "playerid"
C:\Users\Nikita\Desktop\fierroLife\fierroLife\game modes\fierrolife.pwn(359) : error 017: undefined symbol "playerid"
C:\Users\Nikita\Desktop\fierroLife\fierroLife\game modes\fierrolife.pwn(360) : error 017: undefined symbol "playerid"
C:\Users\Nikita\Desktop\fierroLife\fierroLife\game modes\fierrolife.pwn(362) : error 017: undefined symbol "playerid"
C:\Users\Nikita\Desktop\fierroLife\fierroLife\game modes\fierrolife.pwn(363) : error 017: undefined symbol "playerid"
C:\Users\Nikita\Desktop\fierroLife\fierroLife\game modes\fierrolife.pwn(364) : error 017: undefined symbol "playerid"
C:\Users\Nikita\Desktop\fierroLife\fierroLife\game modes\fierrolife.pwn(365) : error 017: undefined symbol "playerid"
C:\Users\Nikita\Desktop\fierroLife\fierroLife\game modes\fierrolife.pwn(366) : error 017: undefined symbol "playerid"
C:\Users\Nikita\Desktop\fierroLife\fierroLife\game modes\fierrolife.pwn(367) : error 017: undefined symbol "playerid"
C:\Users\Nikita\Desktop\fierroLife\fierroLife\game modes\fierrolife.pwn(36 : error 017: undefined symbol "playerid"

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


26 Errors.

Textdraw:
spidometras[playerid] = TextDrawCreate(650.000000, 350.000000, " ");
TextDrawBackgroundColor(spidometras[playerid], 85);
TextDrawFont(spidometras[playerid], 0);
TextDrawLetterSize(spidometras[playerid], 1.970000, 9.299999);
TextDrawColor(spidometras[playerid], -1);
TextDrawSetOutline(spidometras[playerid], 0);
TextDrawSetProportional(spidometras[playerid], 1);
TextDrawSetShadow(spidometras[playerid], 1);
TextDrawUseBox(spidometras[playerid], 1);
TextDrawBoxColor(spidometras[playerid], 85);
TextDrawTextSize(spidometras[playerid], 460.000000, 100.000000);

tekstas1[playerid] = TextDrawCreate(535.000000, 352.000000, " ");
TextDrawBackgroundColor(tekstas1[playerid], 255);
TextDrawFont(tekstas1[playerid], 1);
TextDrawLetterSize(tekstas1[playerid], 0.220000, 1.100000);
TextDrawColor(tekstas1[playerid], -1);
TextDrawSetOutline(tekstas1[playerid], 0);
TextDrawSetProportional(tekstas1[playerid], 1);
TextDrawSetShadow(tekstas1[playerid], 1);

tekstas2[playerid] = TextDrawCreate(456.000000, 349.000000, "000");
TextDrawBackgroundColor(tekstas2[playerid], 255);
TextDrawFont(tekstas2[playerid], 1);
TextDrawLetterSize(tekstas2[playerid], 0.579999, 2.49999;
TextDrawColor(tekstas2[playerid], -1);
TextDrawSetOutline(tekstas2[playerid], 0);
TextDrawSetProportional(tekstas2[playerid], 1);
TextDrawSetShadow(tekstas2[playerid], 1);

kmh[playerid] = TextDrawCreate(502.800000, 357.500000, "~g~km/h");
TextDrawBackgroundColor(kmh[playerid], 255);
TextDrawFont(kmh[playerid], 3);
TextDrawLetterSize(kmh[playerid], 0.300000, 1.3000);
TextDrawColor(kmh[playerid], 0x00CC00FF);
TextDrawSetOutline(kmh[playerid], 0);
TextDrawSetProportional(kmh[playerid], 1);
TextDrawSetShadow(kmh[playerid], 1);

svkb[playerid] = TextDrawCreate(475.800000, 373.500000, " ");
TextDrawBackgroundColor(svkb[playerid], 255);
TextDrawFont(svkb[playerid], 1);
TextDrawLetterSize(svkb[playerid], 0.300000, 1.5000);
TextDrawColor(svkb[playerid], 0x00CC00FF);
TextDrawSetOutline(svkb[playerid], 0);
TextDrawSetProportional(svkb[playerid], 1);
TextDrawSetShadow(svkb[playerid], 1);

speedbox[playerid] = TextDrawCreate(535.000000, 375.000000, " ");
TextDrawBackgroundColor(speedbox[playerid], 90);
TextDrawFont(speedbox[playerid], 1);
TextDrawLetterSize(speedbox[playerid], 0.500000, 1.080000);
TextDrawColor(speedbox[playerid], -1);
TextDrawSetOutline(speedbox[playerid], 0);
TextDrawSetProportional(speedbox[playerid], 1);
TextDrawSetShadow(speedbox[playerid], 1);
TextDrawUseBox(speedbox[playerid], 1);
TextDrawBoxColor(speedbox[playerid], 90);
TextDrawTextSize(speedbox[playerid], 460.000000, 0.000000);
Reply
#2

If you want to create per player textdraw use PlayerTextdraws under OnplayerConnect Callback.
https://sampwiki.blast.hk/wiki/CreatePlayerTextDraw

If you don't want to create per player textdraws remove [MAX_PLAYERS] from new Textdraw[MAX_PLAYERS]; and remove [playerid] and put it under OnGameModeInit callback.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)