29.11.2012, 07:20
Hello i've made /gcars command which should count all group cars but i cant get it working
Here's what i made :
Here is what i get when i type it IG :
Here's what i made :
pawn Код:
CMD:gcars(playerid, params[]) {
if(playerVariables[playerid][pGroup] >= 1 && playerVariables[playerid][pGroupRank] >= 4) {
SendClientMessage(playerid, COLOR_TEAL, "---------------------GROUP CARS---------------------------");
for(new i = 0; i < MAX_VEHICLES; i++) {
if(vehicleVariables[i][vVehicleScriptID] == GetPlayerVehicleID(playerid) && vehicleVariables[i][vVehicleGroup])
{
format(szMessage, sizeof(szMessage), "* %d %s", vehicleVariables[i][vVehicleScriptID], VehicleNames[GetVehicleModel(i) - 400]);
}
SendClientMessage(playerid, COLOR_WHITE, szMessage);
}
SendClientMessage(playerid, COLOR_TEAL, "----------------------------------------------------------------");
}
return 1;
}