27.11.2014, 16:39
hello,
I have problems with my code, no errors when I compile, but my code does not work in games here are my codes:
textdraw:
code:
I am so sorry for the French spelling, and I thank the members who help me.
kind regards,
Drek.
I have problems with my code, no errors when I compile, but my code does not work in games here are my codes:
textdraw:
pawn Код:
PlayerData[playerid][pTextdraws][93] = CreatePlayerTextDraw(playerid,152.799972, 166.506622, "~>~");
PlayerTextDrawLetterSize(playerid, PlayerData[playerid][pTextdraws][93], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, PlayerData[playerid][pTextdraws][93], 1);
PlayerTextDrawColor(playerid, PlayerData[playerid][pTextdraws][93], -1);
PlayerTextDrawSetShadow(playerid, PlayerData[playerid][pTextdraws][93], 0);
PlayerTextDrawSetOutline(playerid, PlayerData[playerid][pTextdraws][93], 1);
PlayerTextDrawBackgroundColor(playerid, PlayerData[playerid][pTextdraws][93], 51);
PlayerTextDrawFont(playerid, PlayerData[playerid][pTextdraws][93], 1);
PlayerTextDrawSetProportional(playerid, PlayerData[playerid][pTextdraws][93], 1);
PlayerTextDrawSetSelectable(playerid, PlayerData[playerid][pTextdraws][93], 1);
PlayerData[playerid][pTextdraws][106] = CreatePlayerTextDraw(playerid,77.599960, 167.253295, "Sexe");
PlayerTextDrawLetterSize(playerid, PlayerData[playerid][pTextdraws][106], 0.334798, 1.555199);
PlayerTextDrawAlignment(playerid, PlayerData[playerid][pTextdraws][106], 1);
PlayerTextDrawColor(playerid, PlayerData[playerid][pTextdraws][106], -1);
PlayerTextDrawSetShadow(playerid, PlayerData[playerid][pTextdraws][106], 0);
PlayerTextDrawSetOutline(playerid, PlayerData[playerid][pTextdraws][106], 1);
PlayerTextDrawBackgroundColor(playerid, PlayerData[playerid][pTextdraws][106], 51);
PlayerTextDrawFont(playerid, PlayerData[playerid][pTextdraws][106], 1);
PlayerTextDrawSetProportional(playerid, PlayerData[playerid][pTextdraws][106], 1);
pawn Код:
if (playertextid == PlayerData[playerid][pTextdraws][93]) // Homme ou femme
{
switch (p_inscription[playerid])
{
case 0: {
PlayerTextDrawSetString(playerid, PlayerData[playerid][pTextdraws][106], "~r~Sexe:~w~ Homme");
}
case 1:{
PlayerTextDrawSetString(playerid, PlayerData[playerid][pTextdraws][106], "~r~Sexe:~w~ Femme");
}
}
PlayerData[playerid][pGender] = p_inscription[playerid] + 1;
PlayerData[playerid][pSkin] = (p_inscription[playerid]) ? (233) : (98);
SetPlayerSkin(playerid, PlayerData[playerid][pSkin]);
}
kind regards,
Drek.