Originally Posted by Naruto_Emilio
The script is tottally fucked, you are always putting return 1; in every place
example:
pawn Код:
if (strcmp("/checkmyteam", cmdtext, true) == 0) { if(pTeam[playerid] == team_lspd){ SendClientMessage(playerid, COLOR_YELLOW , "You are LSPD officer !"); return 1; } if(pTeam[playerid] == team_gang){ SendClientMessage(playerid, COLOR_YELLOW , "You are a Gangster you need to be careful about cops !"); return 1; } return 1; }
pawn Код:
if (strcmp("/checkmyteam", cmdtext, true) == 0) { if(pTeam[playerid] == team_lspd) { SendClientMessage(playerid, COLOR_YELLOW , "You are LSPD officer !"); }
else if(pTeam[playerid] == team_gang) { SendClientMessage(playerid, COLOR_YELLOW , "You are a Gangster you need to be careful about cops !"); return 1; }
and
pawn Код:
if (strcmp("/repair", cmdtext, true) == 0) { if(!IsPlayerInAnyVehicle(playerid)){ SendClientMessage(playerid, COLOR_GREEN , "You need to be in a vehicle to use the /repair command."); return 1; } new vehicleid = GetPlayerVehicleID(playerid); new string[128]; format(string, sizeof(string), "You repaired Vehicle ID: %d", vehicleid); SendClientMessage(playerid, COLOR_GREEN , string); RepairVehicle(vehicleid); return 1; }
To
pawn Код:
if (strcmp("/repair", cmdtext, true) == 0) { if(!IsPlayerInAnyVehicle(playerid)) { SendClientMessage(playerid, COLOR_GREEN , "You need to be in a vehicle to use the /repair command."); } else {
new vehicleid = GetPlayerVehicleID(playerid); new string[128]; format(string, sizeof(string), "You repaired Vehicle ID: %d", vehicleid); SendClientMessage(playerid, COLOR_GREEN , string); RepairVehicle(vehicleid); } return 1; }
|