stock warning..
#1

pawn Код:
warning 202: number of arguments does not match definition
Error line under GamemodeInit
pawn Код:
LoadTextDraw();
Stock:
pawn Код:
stock LoadTextDraw(playerid)
{
    Textdraw0[playerid] = CreatePlayerTextDraw(playerid, 0.000000, 128.426666, "LD_SPAC:white");
    PlayerTextDrawLetterSize(playerid, Textdraw0[playerid], 0.000000, 0.000000);
    PlayerTextDrawTextSize(playerid, Textdraw0[playerid], 242.399993, 319.573333);
    PlayerTextDrawAlignment(playerid, Textdraw0[playerid], 1);
    PlayerTextDrawColor(playerid, Textdraw0[playerid], 255);
    PlayerTextDrawSetShadow(playerid, Textdraw0[playerid], 0);
    PlayerTextDrawSetOutline(playerid, Textdraw0[playerid], 0);
    PlayerTextDrawFont(playerid, Textdraw0[playerid], 4);

    Textdraw1[playerid] = CreatePlayerTextDraw(playerid, 0.799992, 133.653244, "Character Name");
    PlayerTextDrawLetterSize(playerid, Textdraw1[playerid], 0.449999, 1.600000);
    PlayerTextDrawAlignment(playerid, Textdraw1[playerid], 1);
    PlayerTextDrawColor(playerid, Textdraw1[playerid], -1);
    PlayerTextDrawSetShadow(playerid, Textdraw1[playerid], 0);
    PlayerTextDrawSetOutline(playerid, Textdraw1[playerid], 1);
    PlayerTextDrawBackgroundColor(playerid, Textdraw1[playerid], 51);
    PlayerTextDrawFont(playerid, Textdraw1[playerid], 0);
    PlayerTextDrawSetProportional(playerid, Textdraw1[playerid], 1);

    Textdraw2[playerid] = CreatePlayerTextDraw(playerid, 2.399998, 154.559936, "Gender");
    PlayerTextDrawLetterSize(playerid, Textdraw2[playerid], 0.449999, 1.600000);
    PlayerTextDrawAlignment(playerid, Textdraw2[playerid], 1);
    PlayerTextDrawColor(playerid, Textdraw2[playerid], -1);
    PlayerTextDrawSetShadow(playerid, Textdraw2[playerid], 0);
    PlayerTextDrawSetOutline(playerid, Textdraw2[playerid], 1);
    PlayerTextDrawBackgroundColor(playerid, Textdraw2[playerid], 51);
    PlayerTextDrawFont(playerid, Textdraw2[playerid], 0);
    PlayerTextDrawSetProportional(playerid, Textdraw2[playerid], 1);

    Textdraw3[playerid] = CreatePlayerTextDraw(playerid, 5.599998, 173.973266, "Age");
    PlayerTextDrawLetterSize(playerid, Textdraw3[playerid], 0.449999, 1.600000);
    PlayerTextDrawAlignment(playerid, Textdraw3[playerid], 1);
    PlayerTextDrawColor(playerid, Textdraw3[playerid], -1);
    PlayerTextDrawSetShadow(playerid, Textdraw3[playerid], 0);
    PlayerTextDrawSetOutline(playerid, Textdraw3[playerid], 1);
    PlayerTextDrawBackgroundColor(playerid, Textdraw3[playerid], 51);
    PlayerTextDrawFont(playerid, Textdraw3[playerid], 0);
    PlayerTextDrawSetProportional(playerid, Textdraw3[playerid], 1);
}
Reply
#2

replace LoadTextDraw(); with LoadTextDraw(playerid);
Reply
#3

Done that then it's says
error 017: undefined symbol "playerid"
Reply
#4

Oh, there is no "Playerid" OnGameModeInit(),
You should put
pawn Код:
LoadTextDraw(playerid);
under on player connect.
Reply
#5

Oh thanks mate
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)