ToX1c Posted March 22, 2013 Report Share Posted March 22, 2013 Salut cum fac si eu cand cineva se urca in masina mea personala sa il dea jos cand ii apare mesajul public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(!ispassenger) { new id = GetVehicleID(vehicleid); if(IsValidVehicle(id) && VehicleCreated[id] == VEHICLE_PLAYER) { new msg[128]; format(msg, sizeof(msg), "This vehicle belongs to %s", VehicleOwner[id]); SendClientMessage(playerid, COLOR_GREY, msg); } } return 1; }cum am eu aici pot sa conduc masina la altcineva. Link to comment Share on other sites More sharing options...
angel Posted March 22, 2013 Report Share Posted March 22, 2013 RemovePlayerFromVehicle(playerid);Adauga sub SendClientMessage Daca ti-am fost de ajutor +1 Respect!Multumesc Link to comment Share on other sites More sharing options...
ToX1c Posted March 22, 2013 Author Report Share Posted March 22, 2013 Nu merge nu ma da jos din masina .. Link to comment Share on other sites More sharing options...
[XSR]NexT Posted March 22, 2013 Report Share Posted March 22, 2013 Logic ca nu te da jos din masina daca e masina ta personala. Link to comment Share on other sites More sharing options...
ToX1c Posted March 22, 2013 Author Report Share Posted March 22, 2013 m-am urcat in alta masina Link to comment Share on other sites More sharing options...
Guest Rock Posted March 22, 2013 Report Share Posted March 22, 2013 RemovePlayerFromVehicle Link to comment Share on other sites More sharing options...
ToX1c Posted March 22, 2013 Author Report Share Posted March 22, 2013 RemovePlayerFromVehicleRock si ce trebuie sa modific aici?public OnPlayerUpdate(playerid) { if(GetPlayerVehicleID(playerid) == 1 && GetPlayerMoney(playerid) < 5000) { RemovePlayerFromVehicle(playerid); } return 1; } Link to comment Share on other sites More sharing options...
Guest Rock Posted March 22, 2013 Report Share Posted March 22, 2013 public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { if(!ispassenger) { new id = GetVehicleID(vehicleid); if(IsValidVehicle(id) && VehicleCreated[id] == VEHICLE_PLAYER) { new msg[128]; format(msg, sizeof(msg), "This vehicle belongs to %s", VehicleOwner[id]); SendClientMessage(playerid, COLOR_GREY, msg); RemovePlayerFromVehicle(playerid); } } return 1; } Link to comment Share on other sites More sharing options...
ToX1c Posted March 22, 2013 Author Report Share Posted March 22, 2013 Pai da am asa da nu ma da jos cand ma urc in masina personala la atcineva. Link to comment Share on other sites More sharing options...
ToX1c Posted March 23, 2013 Author Report Share Posted March 23, 2013 Ma poate ajuta cineva? Link to comment Share on other sites More sharing options...
DarkyTheAngel Posted March 24, 2013 Report Share Posted March 24, 2013 public OnPlayerEnterVehicle ( playerid , vehicleid , ispassenger ){ if ( !ispassenger ) { new id = GetVehicleID ( vehicleid ) , string [ 128 ] ; if ( VehicleOwner [ id ] ) return ( 1 ) ; if ( IsValidVehicle ( id ) && VehicleCreated [ vehicleid ] == VEHICLE_PLAYER ) { if ( !VehicleOwner [ id ] ) { RemovePlayerFromVehicle ( playerid ) ; format ( string , sizeof ( string ) , "This vehicle belongs to %s" , VehicleOwner [ id ] ) ; SendClientMessage ( playerid , COLOR_GREY , string ) ; } } } return ( 1 ) ; } Link to comment Share on other sites More sharing options...
ToX1c Posted March 25, 2013 Author Report Share Posted March 25, 2013 C:\Documents and Settings\Ionut\Desktop\filterscripts\avs.pwn(1604) : error 033: array must be indexed (variable "VehicleOwner") C:\Documents and Settings\Ionut\Desktop\filterscripts\avs.pwn(1607) : error 033: array must be indexed (variable "VehicleOwner") Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 2 Errors. Linia 1603 - if (VehicleOwner [id]) return (1); Linia 1607 - if (!VehicleOwner [id]) Link to comment Share on other sites More sharing options...
ToX1c Posted March 26, 2013 Author Report Share Posted March 26, 2013 Poate sa ma ajute si pe mine cineva? Link to comment Share on other sites More sharing options...
Guest Rock Posted March 26, 2013 Report Share Posted March 26, 2013 Poate sa ma ajute si pe mine cineva?2 up + 2x post in acelasi topic.Cand inveti sa respecti regulamentul o sa fii ajutat. Link to comment Share on other sites More sharing options...
Question
ToX1c
Salut cum fac si eu cand cineva se urca in masina mea personala sa il dea jos cand ii apare mesajul
cum am eu aici pot sa conduc masina la altcineva.
Link to comment
Share on other sites
13 answers to this question
Recommended Posts