error 035: argument type mismatch (argument 3)
#6

Line 22
Код:
ActorCache[uid][aCName] = name;
Line 23
Код:
ActorCache[uid][aCDesc] = desc
You can't assign strings like that in PAWN. You should use format, or you can use a nice little snippet.

Код:
#if !defined strcpy
	#define strcpy(%0,%1,%2) strcat((%0[0] = '\0', %0), %1, %2)
#endif
It stands for string copy. You use it like.

Код:
strcpy(destination, source, size);
So now, change those lines to.

Код:
strcpy(name,ActorCache[uid][aCName],MAX_PLAYER_NAME);
strcpy(name,ActorCache[uid][aCDesc],256);
Change that 256 to the size of the variable.
Reply


Messages In This Thread
error 035: argument type mismatch (argument 3) - by Auri - 08.05.2018, 20:36
Re: error 035: argument type mismatch (argument 3) - by AlamoTR - 08.05.2018, 20:42
Re: error 035: argument type mismatch (argument 3) - by Auri - 08.05.2018, 20:47
Re: error 035: argument type mismatch (argument 3) - by ISmokezU - 09.05.2018, 00:50
Re: error 035: argument type mismatch (argument 3) - by CyNiC - 09.05.2018, 01:34
Re: error 035: argument type mismatch (argument 3) - by DarkSkull - 09.05.2018, 04:44

Forum Jump:


Users browsing this thread: 1 Guest(s)