Simple error, Which i couldnt fix.
#1

Errors:

Код:
95:error 010: invalid function or declaration
98:error 010: invalid function or declaration
Lines:
Код:
	if (strcmp("/test", cmdtext, true, 10) == 0) -----> 95
	{
		SendClientMessage(playerid, WHITE,  " TEST " );
		return 1; -----> 98
	}
Reply
#2

"/test" is 5 characters, not 10.

pawn Код:
if(strcmp(cmdtext, "/test", true, 5) == 0) {
   SendClientMessage(playerid, WHITE, " TEST ");
   return 1;
}
Reply
#3

Quote:
Originally Posted by Calg00ne
Посмотреть сообщение
"/test" is 5 characters, not 10.

pawn Код:
if(strcmp(cmdtext, "/test", true, 5) == 0) {
   SendClientMessage(playerid, WHITE, " TEST ");
   return 1;
}
Doesnt work, same errors
Reply
#4

Did you place the command inside OnPlayerCommandText?
Reply
#5

^Yup.
Reply
#6

Give us a few lines above 95 (85-94)
Reply
#7

Nevermind, I've fixed it, btw, Thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)