Set a string to another string
#1

I am trying to set the mBagLoc string to position but it gives me this error.

Код:
error 047: array sizes do not match, or destination array is too small
PHP код:
public createMBag(Float:xFloat:yFloat:zposition[])
{
    
mBagLoc position// Set the mBagLoc string to the specified position so that we can refrence it later 
Reply
#2

pawn Код:
#define strcpy(%0,%1) \
    strcat((%0[0] = '\0', %0), %1)

//(...)
strcpy(mBagLoc, position);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)