Errors :S
#6

Quote:
Originally Posted by lrZ^ aka LarzI
If your switch isn't a string var, you can't use strings as cases AFAIK
This is the whole command At all the 'case' i get this error :S
Код:
dcmd_gps(playerid, params[])
{
	if(!strlen(params))
    	return SendClientMessage(playerid, COLOR_GREY, "For al the locations use: /gpslocations");

 	switch(params)
	{
		case "pd":
		{
			SetPlayerCheckpoint(playerid,1541.3068,-1675.2467,13.5523,6.0);
			SendClientMessage(playerid, COLOR_RED, ".:GPS:. Checkpoint Set on: Police Department");
		}
		case "airport":
		{
			SetPlayerCheckpoint(playerid,1961.7820,-2184.5918,13.5469,6.0);
			SendClientMessage(playerid, COLOR_RED, ".:GPS:. Checkpoint Set on: Los Santos Airport");
		}
		case "bank":
		{
			SetPlayerCheckpoint(playerid,1422.4249,-1696.0032,13.5469,6.0);
			SendClientMessage(playerid, COLOR_RED, ".:GPS:. Checkpoint Set on: Bank of Los Santos");
		}
		case "ammunation":
		{
			SetPlayerCheckpoint(playerid,1365.5531,-1279.8724,13.5469,6.0);
			SendClientMessage(playerid, COLOR_RED, ".:GPS:. Checkpoint Set on: Ammunation Los Santos");
		}
		case "spawn":
		{
			SetPlayerCheckpoint(playerid,1761.1202,-1895.1223,13.5613,6.0);
			SendClientMessage(playerid, COLOR_RED, ".:GPS:. Checkpoint Set on: Noob Spawn");
		}
		case "cityhall":
		{
			SetPlayerCheckpoint(playerid,1487.2035,-1750.3798,15.4453,6.0);
			SendClientMessage(playerid, COLOR_RED, ".:GPS:. Checkpoint Set on: Cityhall Of Los Santos");
		}
		case "pier":
		{
			SetPlayerCheckpoint(playerid,835.8881,-2042.4478,12.8672,6.0);
			SendClientMessage(playerid, COLOR_RED, ".:GPS:. Checkpoint Set on: The Pier");
		}
	}
	return 1;
}
Reply


Messages In This Thread
Errors :S - by GforceNL - 13.12.2009, 17:11
Re: Errors :S - by LarzI - 13.12.2009, 17:13
Re: Errors :S - by Lajko1 - 13.12.2009, 17:16
Re: Errors :S - by GforceNL - 13.12.2009, 17:17
Re: Errors :S - by LarzI - 13.12.2009, 17:22
Re: Errors :S - by GforceNL - 13.12.2009, 17:24
Re: Errors :S - by Zamaroht - 13.12.2009, 17:27

Forum Jump:


Users browsing this thread: 1 Guest(s)