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
#2

Code:
ShowDialog(playerid, ID, str[])
Reply
#3

Oops. Thanks!
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)