Jump to content

Phoenix-Roleplay

Members
  • Posts

    92
  • Joined

  • Last visited

Everything posted by Phoenix-Roleplay

  1. @Jays, it seems using yours no matter what I get the "Your (#...) was spawned.."
  2. Depends on what kind of calculator you want to make
  3. @Castillo, yours works but fails to display the line where it says "Your vehicle was spawned.." @Cadu, same problems. EDIT: @jays, yes but I work like a million
  4. I actually jumped over yours by mistake checking it now.
  5. Oh don't judge! I'm sorta a fan boy of Halo, grew up off that game lol Anyways, @Cadu, it does spawn the vehicle using either a number or name. But on both parts I get: WARNING: pf\s_main.lua:56: Bad argument @ `getVehicleName` WARNING: pf\s_main.lua:58: Bad argument @ `getVehicleName` ERROR: pf\s_main.lua:58: attempt to concatenate local `carM` (a boolean value)
  6. Oh the learning part of course.. NO! The calc lol
  7. Checking now! Sorry, was busy with halo reach :3
  8. Well thanks, I just need to get a little more used to Vegas, it seems easy but just takes a lot of busy work >_>
  9. function createVehicleCommand ( thePlayer, commandName, carName ) local x, y, z = getElementPosition ( thePlayer ) if (type(carName) == "number") then if carName < 400 then outputChatBox("Invalid Vehicle", player, 255, 0, 0) elseif carName > 611 then outputChatBox("Invalid Vehicle", player, 255, 0, 0) else local carM = getVehicleName(carName) createVehicle(carName, x+5, y, z) outputChatBox("Your " .. getVehicleName(carM) .. " (#" .. carM .. ") was spawned with an ID of " .. vehicles.id, player, 0, 255, 0) vehicles.id = vehicles.id+1 end else local carModel = getVehicleModelFromName(carName) if not carModel then outputChatBox("That is not a valid car name") else createVehicle(carModel, x+5, y, z) outputChatBox("Your " .. getVehicleName(carModel) .. " (#" .. carModel .. ") was spawned with and ID of " .. vehicles.id, player, 0, 255, 0) vehicles.id = vehicles.id+1 end end end addCommandHandler("v", createVehicleCommand)
  10. That my friend is a weight tray I can fully customize it from 0g to 28g of additional weight
  11. , Well, I'm not a Creative Person I could always have the bird coming in with flames and then pit fire and it burns off into the two words as it does this its flying past then flies in from the corner with the screech of a bird as he flies into the normal position EDIT: Spit fire.. not pit fire
  12. Yes I know this, I'm saying to learn lua.. I should make a IG calculator.. Well that will be a lot of busy work..
  13. Alright. What does everyone mean by that? Literally a IG calc... I see this over a bunch of threads.
  14. It appears that it jumps straight to "That is not a valid car name"
  15. Right. How would I approach whilst keeping it able to detect if someone puts in a vehicle name? Sorry, I am not familiar with working with vehicles.
  16. Hello MTA, I have been trying to create a fully functional vehicle spawn system but it seems at line 52 I get the following error: ERROR: pf\s_main.lua:52: attempt to compare string with number I read somewhere that lua will convert numbers to strings and likewise. Anyways, here is the script function createVehicleCommand ( thePlayer, commandName, carName ) local x, y, z = getElementPosition ( thePlayer ) if tonumber(carName) ~= nil then if carName < 400 then outputChatBox("Invalid Vehicle", player, 255, 0, 0) elseif carName > 611 then outputChatBox("Invalid Vehicle", player, 255, 0, 0) else local carM = getVehicleName(carName) createVehicle(carName, x+5, y, z) outputChatBox("Your " .. getVehicleName(carM) .. " (#" .. carM .. ") was spawned with an ID of " .. vehicles.id, player, 0, 255, 0) vehicles.id = vehicles.id+1 end else local carModel = getVehicleModelFromName(carName) if not carModel then outputChatBox("That is not a valid car name") else createVehicle(carModel, x+5, y, z) outputChatBox("Your " .. getVehicleName(carModel) .. " (#" .. carModel .. ") was spawned with and ID of " .. vehicles.id, player, 0, 255, 0) vehicles.id = vehicles.id+1 end end end addCommandHandler("v", createVehicleCommand) Line 52: if carName < 400 then Sorry if the script is slightly poorly put together, I was in a rush when trying to make this part of it.
  17. Thanks! It's always good to be creative. Any thoughts or suggestions?
  18. Which I have, it seems all clients get this issue as well. I took a photo for example and made it 200x200, and then displayed it at 200x200 in game and the quality of it just looks horrid. EDIT: I mean, I made a photo at the size of 200x200, not changed.
  19. Is there anything special I have to do to draw images in high resolution? It seems any photo I use they all show up in poor quality and get very pix-elated
  20. This. http://portforward.com/ EDIT: If you need on-hand help I can help you on TeamViewer You can either, pm me on here, add me on skype: Dat.New.New.Rockstar, or email me: [email protected] Regards, Chris Canfield
  21. Ish please! I'm always jelly of castillo
  22. Not bad for a generic keyboard I only buy gaming keyboards just cause they have the extra bind-able keys and good backlighting (imo) I also hated the feel of my laptops flat keyboard and wanted a bulgy one
×
×
  • Create New...