Jump to content

DotFrank

Members
  • Posts

    9
  • Joined

  • Last visited

DotFrank's Achievements

Newbie

Newbie (4/54)

0

Reputation

  1. its prints but the problem keeps in the condition.
  2. I already used it on server side too, same mistake. --server-side if getPlayerMoney(source) >= price then -- attempt to compare string with number. I if use tonumber(price) the error is => attempt to compare nil with number giveWeapon(source,weaponID,ammo) -- without the condition it gives me the weapon end
  3. Hi guys, i have a problem comparing getPlayerMoney() with price, if i dont use tonumber(price) the error is 'attemp to compare string with number' and if i use tonumber(price) then the error is 'attemp to compare nil with number'. This problem is only comparing, if I do not use the condition server-side gives me the weapon. function onBuyWeapon() local itemSelected= guiGridListGetSelectedItem(list) if itemSelected ~= -1 then local weaponName = guiGridListGetItemText (list,itemSelected,column_arma) local ammo = guiGridListGetItemText(list,itemSelected,column_balas) local price = guiGridListGetItemText(list,itemSelected,column_precio) if getPlayerMoney() >= price then triggerServerEvent("onBuyWeapon",getLocalPlayer(),weaponName,ammo,price) end end end
  4. Muchas gracias, me sirvió mucho!
  5. Hola amigos, tengo una inquietud, hay alguna manera aparte de fileDelete de proteger tus scripts client side? es seguro usar fileDelete? Saludos.
  6. my gamemode is based on maps like race, all maps are positioned over the water, i'm trying with onGamemodeStart but no way to check if the client map download has finished to spawn player.
  7. hello guys, i'm making my own gamemode but i have a problem, when the map starts the player fall in the water because the map download isn't finished. how can i checks if the map download finished? What functions should i use? Greetings.
×
×
  • Create New...