2 problems
#1

hey everyone,

i have 2 little problems
the first one is that i can't find the object id of the yellow downwarts pointing marker,
the second is that i don't get an massege anymore if i use an wrong command

i hope you can help me

thanks in advance
Reply
#2

1. i only know the ID of the white "diamond": 1559
2. make sure that each OnPlayerCommandText() callback ends with
Код:
return 0;
else it will implicate that your command was processed succesfully (with return 1; at the end), your filterscripts should return 0; at last, too.
Reply
#3

thanks it will be usefull
Reply
#4

Код:
if(!strcmp(cmdtext, "/me", true, 3))
			{
			  if(cmdtext[3] == 0) {
			  SendClientMessage(playerid, 0xFF0000FF, "USAGE: /me [action]");
			  return 1;
			  }
			  new str[128];
			  GetPlayerName(playerid, str, sizeof(str));
			  format(str, sizeof(str), " %s %s ", str, cmdtext[4]);
			  SendClientMessageToAll(COLOR_GOLD, str);
			  return 1;
			}
Take a look at the /me command and maybe you can learn about the wron command part.
Use an else after all the commands that are defined...if he types anything else with a slash behind then it shows Server:Unknow Command....i think it does that by defualt

Second : Use ----> [SA-MP WIKI<---- and search for pickup ids.

Hope it Helps
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)