SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Tutorials

Reply
 
Thread Tools Display Modes
Old 14/07/2019, 08:42 PM   #31
Unkovic
Big Clucker
 
Unkovic's Avatar
 
Join Date: Sep 2017
Posts: 93
Reputation: 14
Default Re: Custom on-screen textures for SA:MP 0.3.7-DL

PHP Code:
public OnGameModeInit()
{


    
TDEditor_TD[0] = TextDrawCreate(-18.000003, -9.940746"box");
    
TextDrawLetterSize(TDEditor_TD[0], 0.00000052.633281);
    
TextDrawTextSize(TDEditor_TD[0], 650.0000000.000000);
    
TextDrawAlignment(TDEditor_TD[0], 1);
    
TextDrawColor(TDEditor_TD[0], -1);
    
TextDrawUseBox(TDEditor_TD[0], 1);
    
TextDrawBoxColor(TDEditor_TD[0], 255);
    
TextDrawSetShadow(TDEditor_TD[0], 0);
    
TextDrawBackgroundColor(TDEditor_TD[0], 255);
    
TextDrawFont(TDEditor_TD[0], 1);
    
TextDrawSetProportional(TDEditor_TD[0], 1);

    
TDEditor_TD[1] = TextDrawCreate(-3.000015140.896362"mdl-2001:cover");
    
TextDrawTextSize(TDEditor_TD[1], 644.000000118.000000);
    
TextDrawAlignment(TDEditor_TD[1], 1);
    
TextDrawColor(TDEditor_TD[1], -1);
    
TextDrawSetShadow(TDEditor_TD[1], 0);
    
TextDrawBackgroundColor(TDEditor_TD[1], 255);
    
TextDrawFont(TDEditor_TD[1], 4);
    
TextDrawSetProportional(TDEditor_TD[1], 0);

    
TDEditor_TD[2] = TextDrawCreate(275.333282313.200042"loading...");
    
TextDrawLetterSize(TDEditor_TD[2], 0.4420001.371852);
    
TextDrawTextSize(TDEditor_TD[2], 280.3332820.000000);
    
TextDrawAlignment(TDEditor_TD[2], 1);
    
TextDrawColor(TDEditor_TD[2], -1);
    
TextDrawSetShadow(TDEditor_TD[2], 0);
    
TextDrawSetOutline(TDEditor_TD[2], 1);
    
TextDrawBackgroundColor(TDEditor_TD[2], 255);
    
TextDrawFont(TDEditor_TD[2], 2);
    
TextDrawSetProportional(TDEditor_TD[2], 1);
    new 
MySQLOptoption_id mysql_init_options();

    
mysql_set_option(option_idAUTO_RECONNECTtrue); 

    
g_SQL mysql_connect(MYSQL_HOSTMYSQL_USERMYSQL_PASSWORDMYSQL_DATABASEoption_id);
    if (
g_SQL == MYSQL_INVALID_HANDLE || mysql_errno(g_SQL) != 0)
    {
        print(
"MySQL connection failed. Server is shutting down.");
        
SendRconCommand("exit");
        return 
1;
    }

    
printf("MySQL konekcija uspesna. User %s, \nPassword: %s, \nDatabaza: %s, \nHost: %s",
        
MYSQL_USERMYSQL_PASSWORDMYSQL_DATABASEMYSQL_HOST);
    
    return 
1;
}

public 
OnPlayerConnect(playerid)
{
    
TextDrawShowForPlayer(playeridTDEditor_TD[0]);
    
TextDrawShowForPlayer(playeridTDEditor_TD[1]);
    
TextDrawShowForPlayer(playeridTDEditor_TD[2]);
    return 
1;

Won't show me custom model TDEditor_TD[1], while in TDeditor by Adrii shows me normally.
PHP Code:
AddSimpleModel(-1,19379, -2002"object1.dff""jezici.txd"); 
my artconfig

[22:37:41] [artwork:crc] object.dff CRC = 0xDCFCC14C
[22:37:41] [artwork:crc] ucitavanjelogo.txd CRC = 0x85EE4EFB
[22:37:41] [artwork:crc] object1.dff CRC = 0xDCFCC14C
[22:37:41] [artwork:crc] jezici.txd CRC = 0x2DE62166

I got this every time.
Unkovic is offline   Reply With Quote
Old 15/07/2019, 11:43 AM   #32
Unkovic
Big Clucker
 
Unkovic's Avatar
 
Join Date: Sep 2017
Posts: 93
Reputation: 14
Default Re: Custom on-screen textures for SA:MP 0.3.7-DL

I solved it by putting Showing in Onplayerfinisheddownloading
Unkovic is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How can i make custom textures? GTLS Scripting Help 3 18/05/2015 05:44 PM
[Question] Custom textures Chale4tee7 Scripting Help 0 05/11/2013 05:51 PM
Custom textures Darien Scripting Help 4 03/04/2012 07:47 PM


All times are GMT. The time now is 01:56 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.