error 035: argument type mismatch (argument 1 & 2)
#1

How to fix this errors ??

Lines 2785-2786:
Код:
						GetPlayerName(playerid, name, sizeof (name));
						if (!strcmp(name, string[stringPos], true, id))
Errors :

Quote:

G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(2785) : error 035: argument type mismatch (argument 2)
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(2785) : error 035: argument type mismatch (argument 2)
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(2786) : error 035: argument type mismatch (argument 1)

Reply
#2

Код:
GetPlayerName(playerid, name, sizeof (name));
if (!strcmp(name, string[stringPos], true))
Reply
#3

Quote:
Originally Posted by Rittik
Посмотреть сообщение
Код:
GetPlayerName(playerid, name, sizeof (name));
if (!strcmp(name, string[stringPos], true))
Quote:

G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(2785) : error 035: argument type mismatch (argument 2)
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(2785) : error 035: argument type mismatch (argument 2)
G:\GTA SA-MP Installers\SA-MP Server\0.3x R2 Server\SATDM~FR 0.3x\gamemodes\RgXFreeroam.pwn(2786) : error 035: argument type mismatch (argument 1)

Still Errors
Reply
#4

Do you have this in your code. if no then please add the below code under the command which you were getting errors :
Код:
new name[MAX_PLAYER_NAME+1];
Reply
#5

How are you defining the variable "string"?


Quote:
Originally Posted by Rittik
Посмотреть сообщение
Do you have this in your code. if no then please add the below code under the command which you were getting errors :
Код:
new name[MAX_PLAYER_NAME+1];
He probably has it because if he didn't, it would give him undefined symbols errors then argument thing comes.
Reply
#6

Quote:
Originally Posted by Rittik
Посмотреть сообщение
Do you have this in your code. if no then please add the below code under the command which you were getting errors :
Код:
new name[MAX_PLAYER_NAME+1];
Thanks its Worked
Reply
#7

Quote:
Originally Posted by iFiras
Посмотреть сообщение
How are you defining the variable "string"?



He probably has it because if he didn't, it would give him undefined symbols errors then argument thing comes.
@iFiras: I guess, it worked for him.

@WhiteAngel: Welcome.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)