SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 16/08/2019, 09:44 AM   #1
Z3nx31L
Little Clucker
 
Join Date: Aug 2019
Posts: 19
Reputation: 0
Default argument type mismatch

PHP Code:
stock ShowPlayerDialogEx(playeriddialogidstyle, const caption[], const info[], const button1[], const button2[], {Float,_}:...)
{
    static
        
string[4096],
        
args
    
;
    if (!
strlen(info))
    {
        return 
0;
    }
    if ((
args numargs()) > 7)
    {
        while (--
args >= 7)
        {
            
#emit LCTRL 5
            #emit LOAD.alt args
            #emit SHL.C.alt 2
            #emit ADD.C 12
            #emit ADD
            #emit LOAD.I
            #emit PUSH.pri
        
}
        
#emit PUSH.S info
        #emit PUSH.C 4096
        #emit PUSH.C string
        #emit LOAD.S.pri 8
        #emit CONST.alt 16
        #emit SUB
        #emit PUSH.pri
        #emit SYSREQ.C format
        #emit LCTRL 5
        #emit SCTRL 4
        
ShowPlayerDialog(playeriddialogidstylecaptionstringbutton1button2);
    }
    else
    {
        
ShowPlayerDialog(playeriddialogidstylecaptioninfobutton1button2);
    }
    return 
1;
//Credits To Emmet 
./include/stocks.pwn(372) : error 035: argument type mismatch (argument 4)
./include/stocks.pwn(376) : error 035: argument type mismatch (argument 4)
__________________
KID
Z3nx31L is online now   Reply With Quote
Old 16/08/2019, 11:11 AM   #2
Z3nx31L
Little Clucker
 
Join Date: Aug 2019
Posts: 19
Reputation: 0
Default Re: argument type mismatch

SOLVED I CHANGE CONST TO STRING:
__________________
KID
Z3nx31L is online now   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
D:\server\gamemodes\ExtremeGame.pwn(22326) : error 035: argument type mismatch (argument 2) enzulikeS Scripting Help 2 25/04/2018 03:38 PM
C:\Users\Lirbo\Desktop\Roleplay\gamemodes\ERP.pwn( 19) : error 035: argument type mismatch (argument 1) Lirbo Scripting Help 2 12/12/2014 02:51 PM
Argument type mismatch (argument 1) when getting info from MySQL database kamiliuxliuxliux Scripting Help 3 05/06/2014 02:08 PM
error 035: argument type mismatch (argument 2) [Using MySQL R7/R8 With Cache] viveka27 Scripting Help 1 21/05/2013 03:31 PM
argument type mismatch (argument type 2) on sendclientmessage? Jack_Leslie Help Archive 2 31/07/2011 05:12 AM


All times are GMT. The time now is 12:30 PM.


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