08.11.2013, 02:07
Hola tengo un problema con el comando /entrar con los garajes bueno el problema es que yo pongo /entrar y me dice que el comando no existe pero en realidad si sirve bien pero ese es el unico error
Aqui dejo el comando
Ayuda que puedo hacer para areglarlo? :S
Aqui dejo el comando
Quote:
CMD:entrar(playerid, params[]) { new vehicleid = GetPlayerVehicleID(playerid); new nume[MAX_PLAYER_NAME]; GetPlayerName(playerid, nume, sizeof(nume)); for(new i= 1; i<=maxgaraje; i++) { if(IsPlayerInRangeOfPoint(playerid, 5.0, GarajInfo[i][Intrarex], GarajInfo[i][Intrarey], GarajInfo[i][Intrarez])) { if(GarajInfo[i][GarajPropietar] == nume[playerid]) { if(IsPlayerInAnyVehicle(playerid)) { curentg[playerid] = GarajInfo[i][GarajVirtual]; SetVehiclePos(vehicleid, GarajInfo[i][Iesirex], GarajInfo[i][Iesirey], GarajInfo[i][Iesirez]); SetVehicleVirtualWorld(vehicleid, GarajInfo[i][GarajVirtual]); SetPlayerVirtualWorld(playerid, GarajInfo[i][GarajVirtual]);return 1; } else { curentg[playerid] = GarajInfo[i][GarajVirtual]; SetPlayerPos(playerid, GarajInfo[i][Iesirex], GarajInfo[i][Iesirey], GarajInfo[i][Iesirez]); SetPlayerVirtualWorld(playerid, GarajInfo[i][GarajVirtual]);return 1; } } else { if(GarajInfo[i][GarajStatus] == 0) { if(IsPlayerInAnyVehicle(playerid)) { curentg[playerid] = GarajInfo[i][GarajVirtual]; SetVehiclePos(vehicleid, GarajInfo[i][Iesirex], GarajInfo[i][Iesirey], GarajInfo[i][Iesirez]); SetVehicleVirtualWorld(vehicleid, GarajInfo[i][GarajVirtual]); SetPlayerVirtualWorld(playerid, GarajInfo[i][GarajVirtual]); return 1; } else { curentg[playerid] = GarajInfo[i][GarajVirtual]; SetPlayerPos(playerid, GarajInfo[i][Iesirex], GarajInfo[i][Iesirey], GarajInfo[i][Iesirez]); SetPlayerVirtualWorld(playerid, GarajInfo[i][GarajVirtual]); return 1; } } } } } return 1; } |