I need some help here
#1

Hello peoples i've made /takegunm4 command for Army .. but few warning appear and CMD doesn't work how it should.
This is the CMD:
Код:
if (strcmp("/takem4", cmdtext, true, 10) == 0)
	{
		if(IsPlayerInRangeOfPoint(2790.4155,-2486.0696,13.6471))
		GivePlayerWeapon(playerid,31,400); // 31 is weapons (m4) ID and 200 is ammount of bullets
		else SendClientMessage(playerid, COLOR_RED, "You have to be in Army Base Garage Three to take m4");
        new playername[24];
        new str[128]; // String
        GetPlayerName(playerid, playername, sizeof(playername)); // Gets the player name for this action.
         format(str, sizeof(str), "%s has opened a box and takes out m4 with some ammo", playername); // What it's going to look like.
         SendClientMessageToAll(COLOR_RED, str); // Color to send the message to everyone in.
		 return 1;
	}
Код:
Warnings:

C:\Documents and Settings\NO\My Documents\Downloads\New Folder\gamemodes\Nrd.pwn(664) : warning 213: tag mismatch
C:\Documents and Settings\NO\My Documents\Downloads\New Folder\gamemodes\Nrd.pwn(664) : warning 202: number of arguments does not match definition
C:\Documents and Settings\NO\My Documents\Downloads\New Folder\gamemodes\Nrd.pwn(664) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Warnings.
I wanted to make /takegun cmd and /me takes out a m4 from the box with it.Takegun works but ME isn't.

Help?
Reply


Messages In This Thread
I need some help here - by Kobatz - 08.05.2011, 10:39
Re: I need some help here - by MadeMan - 08.05.2011, 12:59
Re: I need some help here - by Kobatz - 08.05.2011, 15:42
Re: I need some help here - by MadeMan - 08.05.2011, 16:12
Re: I need some help here - by Kobatz - 08.05.2011, 16:25

Forum Jump:


Users browsing this thread: 2 Guest(s)