How to fix it?
#1

Код:
C:\Documents and Settings\Customer\Desktop\My script.pwn(585) : error 002: only a single statement (or expression) can follow each "case"
This error piss me off...How to fix it?

Codes:

Код:
case 19, 20:
		{
			GameTextForPlayer(playerid, "~g~~n~~n~~n~~n~~n~~n~~n~Rappers", 2500, 3);
			SetPlayerInterior(playerid,5);
			SetPlayerPos(playerid,1255.5067,-804.1730,1084.0151);
			SetPlayerFacingAngle(playerid,270);
			SetPlayerCameraPos(playerid,1259.7469,-804.1441,1085.0078);
			SetPlayerCameraLookAt(playerid,1255.5067,-804.1730,1084.0151);
		}
		case 21, 22:
		{
			GameTextForPlayer(playerid, "~g~~n~~n~~n~~n~~n~~n~~n~Cluckin Bell", 2500, 3);
			SetPlayerInterior(playerid,9);
			SetPlayerPos(playerid,366.1467,-9.1969,1001.8516);
			SetPlayerFacingAngle(playerid,130);
			SetPlayerCameraPos(playerid,363.7454,-11.1512,1002.7516);
			SetPlayerCameraLookAt(playerid,366.1467,-9.1969,1001.8516);
		}
		case 23, 24, 25:
		{
			GameTextForPlayer(playerid, "~g~~n~~n~~n~~n~~n~~n~~n~Drug Dealer", 2500, 3);
			SetPlayerInterior(playerid,0);
			SetPlayerPos(playerid,1175.0873,-2036.9714,77.3320);
			SetPlayerFacingAngle(playerid,270);
			SetPlayerCameraPos(playerid,1179.5652,-2037.0049,79.0078);
			SetPlayerCameraLookAt(playerid,1175.0873,-2036.9714,77.3320);
 		}
 		{
	return 1;
}
Reply
#2

Or maybe this:

Код:
C:\Documents and Settings\Customer\Desktop\My script.pwn(662) : error 017: undefined symbol "NoVOnly"
C:\Documents and Settings\Customer\Desktop\My script.pwn(667) : error 017: undefined symbol "SetPlayerDanceAnimation"
Here are the codes:
Код:
case 21, 22:
		{
			GameTextForPlayer(playerid, "~g~~n~~n~~n~~n~~n~~n~~n~Cluckin Bell", 2500, 3);
			SetPlayerInterior(playerid,9);
			SetPlayerPos(playerid,366.1467,-9.1969,1001.8516);
			SetPlayerFacingAngle(playerid,130);
			SetPlayerCameraPos(playerid,363.7454,-11.1512,1002.7516);
			SetPlayerCameraLookAt(playerid,366.1467,-9.1969,1001.8516);
		}
		case 23, 24, 25:
		{
			GameTextForPlayer(playerid, "~g~~n~~n~~n~~n~~n~~n~~n~Drug Dealer", 2500, 3);
			SetPlayerInterior(playerid,0);
			SetPlayerPos(playerid,1175.0873,-2036.9714,77.3320);
			SetPlayerFacingAngle(playerid,270);
			SetPlayerCameraPos(playerid,1179.5652,-2037.0049,79.0078);
			SetPlayerCameraLookAt(playerid,1175.0873,-2036.9714,77.3320);
		}
		case 26, 27:
		{
			NoVOnly(playerid);
		}

	}

	SetPlayerDanceAnimation(playerid);
I beginned a new script so I don't know, maybe I didn't added some things in the script.
Tell me please both of solutions and whatever I shall do.

Thank you very much!
Reply
#3

Look into your heart and read the errors carefully they tell you exactly what the problem is so for a start these errors..

undefined symbol "NoVOnly"
undefined symbol "SetPlayerDanceAnimation"

as it says you dont have them defined so what you need to do is either define it at the top of your script with the rest of your defines, or ad new SetPlayerDanceAnimation underneath the anim public you probibly missed em out of the novacane script lol go threw it and take ya time all will be ok these are easy to fix mate

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)