SA-MP Forums Archive
I get pawno error 010: invalid function or declaration - 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: I get pawno error 010: invalid function or declaration (/showthread.php?tid=587839)



I get pawno error 010: invalid function or declaration - xTURBOx - 03.09.2015

D:\server scripts\my filterscripts\Tele.pwn(56) : error 010: invalid function or declaration
D:\server scripts\my filterscripts\Tele.pwn(5 : error 010: invalid function or declaration

PHP код:
CMD:teleports
{
    
ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Teleport cmds"," /sfairport\n /ottocars\n /wangcars\n /carrier\n /transfender\n /gym","close","okay");
    return 
1;
    } 
please tell me what is wrong with it.

thanks in advance


Re: I get pawno error 010: invalid function or declaration - X337 - 03.09.2015

Код:
CMD:teleports(playerid, params[])
{ 
    ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Teleport cmds"," /sfairport\n /ottocars\n /wangcars\n /carrier\n /transfender\n /gym","close","okay"); 
    return 1; 
}



Re: I get pawno error 010: invalid function or declaration - xTURBOx - 03.09.2015

Quote:
Originally Posted by X337
Посмотреть сообщение
Код:
CMD:teleports(playerid, params[])
{ 
    ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Teleport cmds"," /sfairport\n /ottocars\n /wangcars\n /carrier\n /transfender\n /gym","close","okay"); 
    return 1; 
}
wow, i forgot to add (playerid,params[])
i guess i was so busy with the function(as it is my first time making a dialog box) i forgot all about it.
anyway, thanks