SA-MP Forums Archive
[[[[[[[[helpppp]]]]]]] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [[[[[[[[helpppp]]]]]]] (/showthread.php?tid=266912)



[[[[[[[[helpppp]]]]]]] - HayZatic - 06.07.2011

This is my code

Код:
COMMAND:jetpack(playerid, params[])
{
	if(IsPlayerConnected(playerid))
	{
	    if(PlayerInfo[playerid][AdminLevel] >= 5)
	    {
	            SetPlayerSpecialAction(playerid, 2); //Spawns them a jetpack.
				SendClientMessage(playerid, Green, "**Spawned jetpack**");
				return 1;
			}
	    else return SendClientMessage(playerid, 0xD8D8D8FF, "You are not allowed to use this command.");
	}
	else return SendClientMessage(playerid, 0xD8D8D8FF, "Player is not connected.");
}
}
This is my error.

Код:
C:\Documents and Settings\Chris\My Documents\HayZaticFreeRoam\filterscripts\HZadmin.pwn(1109) : warning 225: unreachable code
C:\Documents and Settings\Chris\My Documents\HayZaticFreeRoam\filterscripts\HZadmin.pwn(1109) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Chris\My Documents\HayZaticFreeRoam\filterscripts\HZadmin.pwn(1109) : error 017: undefined symbol "cmd_jetpack"
C:\Documents and Settings\Chris\My Documents\HayZaticFreeRoam\filterscripts\HZadmin.pwn(1109) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Chris\My Documents\HayZaticFreeRoam\filterscripts\HZadmin.pwn(1109) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.



Re: [[[[[[[[helpppp]]]]]]] - HayZatic - 06.07.2011

Fixed, i just moved the code to a different line!


Re: [[[[[[[[helpppp]]]]]]] - Max_Coldheart - 06.07.2011

Please read the rules next time.
Quote:
Originally Posted by rules
a) Use a proper subject
Something like "------------>HELP PLZ FAST NOW HELP!!!!!!!!!!!<----------" is not very descriptive and very annoying.
Make a proper subject with a short description, such as "Gates won't open" or "Game crashes instantly"