error 008: must be a constant expression; assumed zero. Error 1. |
//----------------------------Repair Command---------------------------------------------- if ( !strcmp( cmdtext, "/vehrepair", true ) ) { if ( !IsPlayerInAnyVehicle( playerid ) ) return SendClientMessage( playerid, -1, "Silly boy, you are not in any vehicle." ); if ( gVehDelay[ playerid ] != -1 ) return SendClientMessage( playerid, -1, "Please wait before using the command again! Or pedobear will ate you." ); if ( GetPlayerMoney( playerid ) < 14500 ) return SendClientMessage( playerid, -1, "Not enough money. Kill a pedobear for money!" ); RepairVehicle( GetPlayerVehicleID( playerid ) ); gVehDelay[ playerid ] = 10; SetTimerEx( "useRepairAgain", 120000, false, "i", playerid ); return 1; } |
new gVehDelay[ playerid ] = { -1, ... }; |
gVehDelay[ playerid ] = 1;
public useRepairAgain(playerid)
{
gVehDelay[ playerid ] = 0;
}