20.12.2013, 04:52
Код:
E:\Servert\scripts\pawno\include\PPC_PlayerCommands.inc(763) : error 017: undefined symbol "Your" E:\Servert\scripts\pawno\include\PPC_PlayerCommands.inc(763) : error 017: undefined symbol "vehicle" E:\Servert\scripts\pawno\include\PPC_PlayerCommands.inc(763) : error 017: undefined symbol "has" E:\Servert\scripts\pawno\include\PPC_PlayerCommands.inc(763) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
pawn Код:
SendClientMessage(playerid, 0x00FF00FF, "{FFFF00}Your vehicle has been successfully repaired!");
Код:
COMMAND:repair(playerid, params[]) { // Send the command to all admins so they can see it SendAdminText(playerid, "/repair", params); // Check if the player has logged in if (APlayerData[playerid][LoggedIn] == true) { // Check if the player's admin-level is at least 1 if (APlayerData[playerid][PlayerLevel] >= 1) { // Check if the player is inside a vehicle if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFF0000FF, "You are not in a vehicle!"); // Let the player know he's not inside a vehicle and let the server know that this was a valid command // Fully repair the vehicle (damage value and bodywork) RepairVehicle(GetPlayerVehicleID(playerid)); // Send the player a message to inform him that his vehicle has been repaired SendClientMessage(playerid, 0x00FF00FF, "{FFFF00}Your vehicle has been successfully repaired!"); } else return 0; } else return 0; // Let the server know that this was a valid command return 1; }