argument type mismatch (argument 1)
#1

PHP Code:
stock CreateRobberyCheckpoint( szName[ 32 ], iRobValue, Float: fX, Float: fY, Float: fZ, Float: rotation, worldid )
{
    new 
Float: offsetX, Float: offsetY;
    new 
rID = Iter_Free( RobberyCount );
    if ( 
rID != ITER_NONE )
    {
// goes on 
PHP Code:
        format( g_businessData[ iBusiness ] [ E_NAME ], 32, "%s", szBusiness );
//later
        
new robberyid = CreateRobberyCheckpoint( szBusiness, 0, g_businessInteriorData[ iType ] [ E_SAFE_X ], g_businessInteriorData[ iType ] [ E_SAFE_Y ], g_businessInteriorData[ iType ] [ E_SAFE_Z ], g_businessInteriorData[ iType ] [ E_SAFE_ROTATION ], g_businessData[ iBusiness ] [ E_WORLD ] ); 
What did I do wrong here?
Reply
#2

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.
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)