Command Problem
#1

First ones the error, second ones the scripting. I've written it out the exact same way as the other cmds are, and the script gives no problem. But with THIS command, the script decides to throw a bitch fit and not compile. What am i doing wrong D:

F:\Jay Vortex 2 Script (FCRP)\gamemodes\vx-rp.pwn(9246) : error 001: expected token: ")", but found "return"


Код:
CMD:mwalk(playerid, params[]) {
	if(GetPlayerState(playerid != 1) return SendClientMessage(playerid, COLOR_GREY, "You can only use this animation while on foot.");
	if(playerVariables[playerid][pFreezeTime] !=0) return SendClientMessage(playerid, COLOR_GREY, "You can't use animations while cuffed, tazed, or frozen.");
	if(playerVariables[playerid][pEvent] == 1) return SendClientMessage(playerid, COLOR_GREY, "You can't use animations while in an event.");
	ApplyAnimation(playerid,"PED","WALK_player",4.1,1,1,1,1,1);
	return 1;
}
Reply


Messages In This Thread
Command Problem - by Jay_Dixon - 04.11.2012, 03:47
Re: Command Problem - by Swyft™ - 04.11.2012, 03:55
Re: Command Problem - by s0nic - 04.11.2012, 03:56
Re: Command Problem - by KevinPRINCE - 04.11.2012, 03:57
Re: Command Problem - by Swyft™ - 04.11.2012, 03:59
Re: Command Problem - by Jay_Dixon - 04.11.2012, 18:01
Re: Command Problem - by Swyft™ - 04.11.2012, 18:11

Forum Jump:


Users browsing this thread: 3 Guest(s)