Switch this code?
#1

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	dcmd(takeoff, 7, cmdtext);
	return 0;
}
dcmd_takeoff(playerid, params[])
{
Код:
	switch(GetVehicleModel(GetPlayerVehicleID(playerid)))
	{
		case 592, 577, 511, 512, 593, 520, 553, 476, 519, 460, 513:
		{
			new msg[128], name[24];
			GetPlayerName(playerid, name, sizeof (name));
			format(msg,sizeof(msg), "%s taking off", name);
			SendClientMessageToAll(0xEEEE00FF, msg);
		}
		default: SendClientMessage(playerid,0xEEEE00FF, "You are not in a plane, you cannot take off");
	}
}
Can you guys switch this code to strcmp? Because I'm getting 2 errors.
Код:
\Documents and Settings\salim\My Documents\PAWN\gamemodes\APH.pwn(157) : error 017: undefined symbol "dcmd"
E:\Documents and Settings\salim\My Documents\PAWN\gamemodes\APH.pwn(543) : warning 203: symbol is never used: "dcmd_takeoff"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply


Messages In This Thread
Switch this code? - by Sal_Kings - 24.01.2010, 12:17
Re: Switch this code? - by Torran - 24.01.2010, 12:18
Re: Switch this code? - by mansonh - 24.01.2010, 12:20
Re: Switch this code? - by Sal_Kings - 24.01.2010, 12:21
Re: Switch this code? - by mansonh - 24.01.2010, 12:22
Re: Switch this code? - by Sal_Kings - 24.01.2010, 12:23
Re: Switch this code? - by mansonh - 24.01.2010, 12:24
Re: Switch this code? - by mansonh - 24.01.2010, 12:26
Re: Switch this code? - by Sal_Kings - 24.01.2010, 12:35
Re: Switch this code? - by Torran - 24.01.2010, 12:36

Forum Jump:


Users browsing this thread: 1 Guest(s)