07.07.2009, 05:31
Код:
C:\Users\Madhouse\Desktop\Server\gamemodes\DRPG.pwn(86) : error 017: undefined symbol "vehicleid" C:\Users\Madhouse\Desktop\Server\gamemodes\DRPG.pwn(140) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/repairkit", cmdtext, true) == 0)
{
new Float:X, Float:Y, Float:Z;
if (DoesPlayerHaveRepairKit[playerid] == 1)
{
if(IsPlayerInAnyVehicle(playerid))
{
//86 SetVehicleHealth(vehicleid, 1000.0);
PlayerPlaySound(playerid, 1133, X, Y, Z);
DoesPlayerHaveRepairKit[playerid] = 0;
}
}
else
{
SendClientMessage(playerid, COLOR_RED, " You do not have a Repair kit, and/or aren't in a Vehicle !");
PlayerPlaySound(playerid, 1084, X, Y, Z);
}
return 1;
}
if (strcmp("/checkrepairkit", cmdtext, true) == 0)
{
new Float:X, Float:Y, Float:Z;
if(DoesPlayerHaveRepairKit[playerid] == 1)
{
SendClientMessage(playerid, COLOR_BLUE, " You have a Repair kit, /repairkit to use it.");
PlayerPlaySound(playerid, 1083, X, Y, Z);
}
else
{
SendClientMessage(playerid, COLOR_RED, " You do not have a Repair kit, buy one from the Docks.");
PlayerPlaySound(playerid, 1084, X, Y, Z);
}
return 1;
}
if (strcmp("/buyrepairkit", cmdtext, true) == 0)
{
new Float:X, Float:Y, Float:Z;
if(IsPlayerConnected(playerid))
{
if (PlayerToPoint(2.00, playerid, 2415.6770,-2229.1726,13.5469))
{
if(GetPlayerMoney(playerid) >= 250)
{
DoesPlayerHaveRepairKit[playerid] = 1;
GivePlayerMoney(playerid, -250);
PlayerPlaySound(playerid, 1083, X, Y, Z);
SendClientMessage(playerid, COLOR_BLUE, " Bought a Repair Kit, use /repairkit to Repair your Vehicle");
}
}
else
{
SendClientMessage(playerid, COLOR_RED, " You don't have enough money, or aren't at the Docks !");
PlayerPlaySound(playerid, 1084, X, Y, Z);
}
}
}
return 1;
}
//140 return 0;
}
Код:
public OnPlayerCommandText(playerid, cmdtext[])