C:\Users\Taha\Desktop\Modern Century Roleplay\gamemodes\mw2.pwn(88) : error 017: undefined symbol "playerid" C:\Users\Taha\Desktop\Modern Century Roleplay\gamemodes\mw2.pwn(89) : error 017: undefined symbol "playerid" C:\Users\Taha\Desktop\Modern Century Roleplay\gamemodes\mw2.pwn(90) : error 017: undefined symbol "playerid" C:\Users\Taha\Desktop\Modern Century Roleplay\gamemodes\mw2.pwn(91) : error 017: undefined symbol "playerid" C:\Users\Taha\Desktop\Modern Century Roleplay\gamemodes\mw2.pwn(92) : error 017: undefined symbol "playerid" C:\Users\Taha\Desktop\Modern Century Roleplay\gamemodes\mw2.pwn(93) : error 017: undefined symbol "playerid" C:\Users\Taha\Desktop\Modern Century Roleplay\gamemodes\mw2.pwn(94) : error 017: undefined symbol "playerid" C:\Users\Taha\Desktop\Modern Century Roleplay\gamemodes\mw2.pwn(95) : error 017: undefined symbol "playerid"
AButton[playerid] = CreatePlayerTextDraw(playerid,181 ,167 , "Army"); PlayerTextDrawBackgroundColor(playerid,AButton[playerid], 255); PlayerTextDrawFont(playerid,AButton[playerid], 1); PlayerTextDrawLetterSize(playerid,AButton[playerid], 1.500000, 1.500000); PlayerTextDrawColor(playerid,AButton[playerid], -1); PlayerTextDrawSetOutline(playerid,AButton[playerid], 0); PlayerTextDrawSetProportional(playerid,AButton[playerid], 1); PlayerTextDrawSetShadow(playerid,AButton[playerid], 1);
foreach(Player, i)
{
AButton[i] = CreatePlayerTextDraw(i,181 ,167 , "Army");
PlayerTextDrawBackgroundColor(i,AButton[i], 255);
PlayerTextDrawFont(i,AButton[i], 1);
PlayerTextDrawLetterSize(i,AButton[i], 1.500000, 1.500000);
PlayerTextDrawColor(i,AButton[i], -1);
PlayerTextDrawSetOutline(i,AButton[i], 0);
PlayerTextDrawSetProportional(i,AButton[i], 1);
PlayerTextDrawSetShadow(i,AButton[i], 1);
}
I assume you are doing this under OnGameInit, if so, you will need to use foreach so you can set every player's textdraw.
pawn Код:
|
C:\Users\Taha\Desktop\Modern Century Roleplay\gamemodes\mw2.pwn(88) : error 010: invalid function or declaration