!- Maze Help -! - 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)
+--- Thread: !- Maze Help -! (
/showthread.php?tid=380726)
!- Maze Help -! -
xSkullx - 26.09.2012
(939) : error 010: invalid function or declaration
Line:
Code:
if(GetPVarInt(playerid,"InMaze") && cmd_exitmaze(playerid,params) return SCM(playerid, C_RED, "[MAZE]: {FFFFFF}You can't use commands because you are in minigame, write /exitmaze for left maze!");
I use zcmd, and i try to add it in my gm, can somebody help me ?
Re: !- Maze Help -! -
IstuntmanI - 26.09.2012
You forget to close a (, change
pawn Code:
if(GetPVarInt(playerid,"InMaze") && cmd_exitmaze(playerid,params)
to
pawn Code:
if(GetPVarInt(playerid,"InMaze") && cmd_exitmaze(playerid,params))
You don't have how to check a CMD in a if, you have to do it with strcmp/strfind.
Re: !- Maze Help -! -
xSkullx - 26.09.2012
Solved, thanks