17.07.2011, 00:33
EDIT: SOLVED Thanks [HiC]TheKiller
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/vr", true) == 1)
{
if(IsPlayerVipMember(playerid)) return SendClientMessage(playerid,red,"Only Vip's Can Repair Their Vehicles.");
{
if(IsPlayerInAnyVehicle(playerid))
{
new vehicleid = GetPlayerVehicleID(playerid);// gettin the vehicle id
SetVehicleHealth(vehicleid,1000.0);// set the vehicle health
SendClientMessage(playerid,Green1, "Vehicle fixed.");
}
else
{
SendClientMessage(playerid,red, "You are not in a vehicle!");
}
}
}
return 1;
}
Код:
D:\Rockstar Games\Grand Theft Auto San Andreas Samp Server\gamemodes\TESTME.PWN(559) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Warning.
EDIT: SOLVED Thanks [HiC]TheKiller