26.02.2012, 05:34
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:
And the compiler:
Note:Scripted by using Notepad++
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; }
Код:
Current directory: C:\Documents and Settings\Daneil\Desktop\Script for SAMP Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase ================ READY ================