Fix Flip Kill commands
#1

Hello,i got another problem again.
After I finished my script,there's should be no problem.
After I compile it,it shows 0KB on the .amx

These are my code:
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/kill", cmdtext, true, 10) == 0)
	{
		SetPlayerHealth(playerid, 0);
		SendClientMessage(playerid, 0xFFFFFFFF, "INFO:You have commited suicide.");
		return 1;
	}
	if (strcmp("/fix", cmdtext, true, 10) == 0)
	{
		{
		if(IsPlayerInAnyVehicle(playerid) return SendClientMessage(playerid, 0xFFFFFFFF, "ERROR:You must be in a vehicle!");
		}
		GetPlayerVehicleID(playerid);
		SetVehicleHealth(vehicleid, 1000);
		SendClientMessage(playerid, 0xFFFFFFFF, "INFO:Wow,the car is pretty shit,nice fixing!");
	}
	if (strcmp("/flip", cmdtext, true, 10) == 0)
	{
		{
		if(IsPlayerInAnyVehicle(playerid) return SendClientMessage(playerid, 0xFFFFFFFF, "ERROR:You must be in a vehicle!");
	    }
		new currentveh;
        new Float:angle;
        currentveh = GetPlayerVehicleID(playerid);
        GetVehicleZAngle(currentveh, angle);
        SetVehicleZAngle(currentveh, angle);
        SendClientMessage(playerid, 0xFFFFFFFF, "Your vehicle has been flipped.");
        return 1;
    }
	return 0;
}
And the compiler:
Код:
Current directory: C:\Documents and Settings\Daneil\Desktop\Script for SAMP
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

================ READY ================
Note:Scripted by using Notepad++
Reply


Messages In This Thread
Fix Flip Kill commands - by SuNL1GhT - 26.02.2012, 05:34
Re: Fix Flip Kill commands - by 2KY - 26.02.2012, 05:56
Re: Fix Flip Kill commands - by SuNL1GhT - 26.02.2012, 05:57
Re: Fix Flip Kill commands - by Mario™ - 26.02.2012, 06:22
Re: Fix Flip Kill commands - by SuNL1GhT - 26.02.2012, 08:20

Forum Jump:


Users browsing this thread: 1 Guest(s)