SA-MP Forums Archive
argument type mismatch (argument 1) - 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: argument type mismatch (argument 1) (/showthread.php?tid=676164)



argument type mismatch (argument 1) - PowerF - 31.05.2020

PHP Code:
stock CreateRobberyCheckpointszName32 ], iRobValueFloatfXFloatfYFloatfZFloatrotationworldid )
{
    new 
FloatoffsetXFloatoffsetY;
    new 
rID Iter_FreeRobberyCount );
    if ( 
rID != ITER_NONE )
    {
// goes on 
PHP Code:
        formatg_businessDataiBusiness ] [ E_NAME ], 32"%s"szBusiness );
//later
        
new robberyid CreateRobberyCheckpointszBusiness0g_businessInteriorDataiType ] [ E_SAFE_X ], g_businessInteriorDataiType ] [ E_SAFE_Y ], g_businessInteriorDataiType ] [ E_SAFE_Z ], g_businessInteriorDataiType ] [ E_SAFE_ROTATION ], g_businessDataiBusiness ] [ E_WORLD ] ); 
What did I do wrong here?


Re: argument type mismatch (argument 1) - Kwarde - 31.05.2020

CreateRobberyCheckpoint uses "szName[ 32 ]".
CreateBusiness uses "const szName[ 32 ]", that's what is up

You can safely remove the constant declaration in the CreateBusiness() function.


Re: argument type mismatch (argument 1) - PowerF - 31.05.2020

Quote:
Originally Posted by Kwarde
View Post
CreateRobberyCheckpoint uses "szName[ 32 ]".
CreateBusiness uses "const szName[ 32 ]", that's what is up

You can safely remove the constant declaration in the CreateBusiness() function.
many thanks