Command isn't working..
#1

Hello I trying to make a command that will edit the position of the oocshop but the problem is getting a warning to the shop isn't creating..

Код:
Gamemode.pwn(19204) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Warning.
Код:
if(strcmp(choice, "position", true) == 0)
		{
			GetPlayerPos(playerid, OOCshopInfo[id][OOCshopX], OOCshopInfo[id][OOCshopY], OOCshopInfo[id][OOCshopZ], OOCshopInfo[id][OOCshopAngle]);
			//OOCshopInfo[id][impoundInt] = GetPlayerInterior(playerid);
			//OOCshopInfo[id][impoundVW] = GetPlayerVirtualWorld(playerid);
			format(string, sizeof(string), "You have changed the position on OOC Shop #%d.", id);
			SendClientMessage(playerid, COLOR_WHITE, string);
			DestroyDynamic3DTextLabel(OOCshop[id]);
			OOCshopInfo[NewOOCshopID][OOCshopObjectID] = CreateDynamicObject(2754, OOCshopInfo[NewOOCshopID][OOCshopX], OOCshopInfo[NewOOCshopID][OOCshopY], OOCshopInfo[NewOOCshopID][OOCshopZ]-0.1, 0, 0, OOCshopInfo[NewOOCshopID][OOCshopAngle],0,0,-1,250);
           	format(string, sizeof(string), "{01FCFF}[OOC Shop]{F0CC00}\nYou can Purchase OOC Items here\nOOC Shop ID: %d\n[/oocshop]", NewOOCshopID);
			OOCshop[NewOOCshopID] = CreateDynamic3DTextLabel(string, COLOR_DCHAT, OOCshopInfo[NewOOCshopID][OOCshopX],
		 	OOCshopInfo[NewOOCshopID][OOCshopY], OOCshopInfo[NewOOCshopID][OOCshopZ]+0.75,10.0,INVALID_PLAYER_ID,INVALID_VEHICLE_ID,0,0,-1,-1, 100.0);
		 	SpawnedOOCshop++;
			SaveOOCshop(id);
			format(string, sizeof(string), "%s has edited OOC Shop ID %d's position.", GetPlayerNameEx(playerid), id);
			Log("logs/oocshopedit.log", string);
			return 1;
		}
Blue line is the line where the warning is..
Reply
#2

Hey
Change
PHP код:
GetPlayerPos(playeridOOCshopInfo[id][OOCshopX], OOCshopInfo[id][OOCshopY], OOCshopInfo[id][OOCshopZ], OOCshopInfo[id][OOCshopAngle]); 
to
PHP код:
GetPlayerPos(playeridOOCshopInfo[id][OOCshopX], OOCshopInfo[id][OOCshopY], OOCshopInfo[id][OOCshopZ]);
GetPlayerFacingAngle(playeridOOCshopInfo[id][OOCshopAngle]); 
Try it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)