[HELP PLEASE !] Suspect command.
#1

Код:
if(strcmp(cmd, "/suspect", true) == 0 || strcmp(cmd, "/sus", true) == 0)
	{
	  if(IsPlayerConnected(playerid))
	  {

			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_YELLOW, "USAGE: (/sus)spect [Playerid] [Reason]");
				return 1;
			}
			giveplayerid = ReturnUser(tmp);
			if (gTeam[playerid] == 3 )
			{
				if(IsPlayerConnected(giveplayerid))
				{
				  if(giveplayerid != INVALID_PLAYER_ID)
				  {
						if (gTeam[giveplayerid] != 3)
						{
							GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
							GetPlayerName(playerid, sendername, sizeof(sendername));
							new length = strlen(cmdtext);
							while ((idx < length) && (cmdtext[idx] <= ' '))
							{
								idx++;
							}
							new offset = idx;
							new result[64];
							while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
							{
								result[idx - offset] = cmdtext[idx];
								idx++;
							}
							result[idx - offset] = EOS;
							if(!strlen(result))
							{
								SendClientMessage(playerid, COLOR_YELLOW, "USAGE: (/su)spect [playerid/PartOfName] [crime text]");
								return 1;
							}
							if(Wanted[playerid] == 0) { Wanted[playerid] = 3; }
							else { Wanted[giveplayerid]+= 2; }
							return 1;
						}
						else
						{
							SendClientMessage(playerid, COLOR_YELLOW, "  You can't suspect a Cop !");
						}
					}
				}
				else
				{
						format(string, sizeof(string), "  %d is not an active player.", giveplayerid);
						SendClientMessage(playerid, COLOR_YELLOW, string);
						return 1;
				}
			}
			else
			{
				SendClientMessage(playerid, COLOR_YELLOW, "  You are not a Cop");
			}
		}
		return 1;
	}
Код:
C:\DOCUME~1\Gustavo\Desktop\SAMP02~1.WIN\GAMEMO~1\WH-RP.pwn(533) : error 017: undefined symbol "ReturnUser"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply


Messages In This Thread
[HELP PLEASE !] Suspect command. - by Hot - 23.03.2009, 15:02
Re: [HELP PLEASE !] Suspect command. - by Danut - 23.03.2009, 15:21
Re: [HELP PLEASE !] Suspect command. - by Jason_Larson - 23.03.2009, 15:35
Re: [HELP PLEASE !] Suspect command. - by Hot - 23.03.2009, 15:41
Re: [HELP PLEASE !] Suspect command. - by Jason_Larson - 23.03.2009, 15:44
Re: [HELP PLEASE !] Suspect command. - by Hot - 23.03.2009, 15:59
Re: [HELP PLEASE !] Suspect command. - by Jason_Larson - 23.03.2009, 16:07
Re: [HELP PLEASE !] Suspect command. - by Hot - 23.03.2009, 16:47
Re: [HELP PLEASE !] Suspect command. - by Jason_Larson - 23.03.2009, 16:51
Re: [HELP PLEASE !] Suspect command. - by Danut - 23.03.2009, 17:01
Re: [HELP PLEASE !] Suspect command. - by Hot - 23.03.2009, 17:06
Re: [HELP PLEASE !] Suspect command. - by Hot - 23.03.2009, 17:30
Re: [HELP PLEASE !] Suspect command. - by LarzI - 23.03.2009, 18:44

Forum Jump:


Users browsing this thread: 1 Guest(s)