Pass string in a function?
#1

My brain doesn't want to cooperate.

PHP Code:
// somewhere
new str[64];
strcat(str"something something");
ShowDialog(playerid1str); // 133 
PHP Code:
// function
ShowDialog(playeridIDstr)
{
    switch(
ID)
    {
        case 
1ShowPlayerDialog(playeridIDDIALOG_STYLE_PASSWORD"Register"str"Register""Kick me!"); // 175
        // and more
    
}
    return 
1;

PHP Code:
C:\Users\me\Desktop\SAMP\test\dm.pwn(133) : error 035argument type mismatch (argument 3)
C:\Users\me\Desktop\SAMP\test\dm.pwn(175) : error 035argument type mismatch (argument 5
Reply


Messages In This Thread
Pass string in a function? - by Amads - 17.10.2016, 10:24
Re: Pass string in a function? - by Konstantinos - 17.10.2016, 10:34
Re: Pass string in a function? - by Amads - 17.10.2016, 10:37

Forum Jump:


Users browsing this thread: 1 Guest(s)