SA-MP Forums Archive
Update3DTextLabelText - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Update3DTextLabelText (/showthread.php?tid=535239)



Update3DTextLabelText - hillko - 02.09.2014

Update3DTextLabelText(strfd2, 0xFFFFFFFF, strfd2);

error 035: argument type mismatch (argument 1)


Re: Update3DTextLabelText - ThePhenix - 02.09.2014

Read this:
https://sampwiki.blast.hk/wiki/Update3DTextLabelText


Re: Update3DTextLabelText - ViniBorn - 02.09.2014

1є parameter = 3DText ID
2є parameter = INT/HEX NUMBER
3є parameter = STRING


Re: Update3DTextLabelText - hillko - 03.09.2014

Quote:
Originally Posted by ViniBorn
Посмотреть сообщение
1є parameter = 3DText ID
2є parameter = INT/HEX NUMBER
3є parameter = STRING
D:\GTA\СЕРВ\тест\gamemodes\bRush.pwn(1624) : error 035: argument type mismatch (argument 1)
D:\GTA\СЕРВ\тест\gamemodes\bRush.pwn(1630) : error 035: argument type mismatch (argument 1)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

Update3DTextLabelText(strfd2, 0xFFFFFFFF, strfd2);
Update3DTextLabelText(strfd2, 0xFFFFFFFF, strfd2);

Код HTML:
stock TextPlan()
{
    for(new i;i<MAX_AIR;i++)
    {
    if(!strcmp(Samol[i][cOwner],"sell",true,24))
    {
    new strfd2[120];
    format(strfd2, sizeof(strfd2), "{da70d6}Ïðîäàåòñÿ\n Öåíà: {c0ff00}%d", Samol[i][cCoast]);
    aeroo[i] = CreateDynamic3DTextLabel(strfd2, 0xFFFFFFAA, 0.0, 0.0, 1.0, 30.0, INVALID_PLAYER_ID, Samol[i][cCarID]);
    Update3DTextLabelText(strfd2, 0xFFFFFFFF, strfd2);
    //Attach3DTextLabelToVehicle(aeroo[i], Samol[i][cCarID], 0.0, 0.0, 0.0);
    }else{
    new strfd2[120];
    format(strfd2, sizeof(strfd2), "{ff9966}Âëàäåëåö: {ffcc00}%s", Samol[i][cOwner]);
    aeroo[i] = CreateDynamic3DTextLabel(strfd2, 0xFFFFFFAA, 0.0, 0.0, 1.0, 30.0, INVALID_PLAYER_ID, Samol[i][cCarID]);
    Update3DTextLabelText(strfd2, 0xFFFFFFFF, strfd2);
    //Attach3DTextLabelToVehicle(aeroo[i], Samol[i][cCarID], 0.0, 0.0, 0.0);
    }
    }
    return 1;
}