Chaz-CR Posted June 22, 2013 Share Posted June 22, 2013 Bueno pues tengo una duda este script tiene un problema que al poner /Pay player -9999999 o algun numero negativo el otro jugador lo recibe en positivo y quisiera corregir eso alguno me podria ayudar? He aca la parte del script de eso! if playername and money then local player2 = getPlayerFromName(playername) if player2 then if tonumber(money) and tonumber(money) >= 1 then givePlayerMoney(player2,tonumber(money)) takePlayerMoney(player,tonumber(money)) end Link to comment
Sasu Posted June 22, 2013 Share Posted June 22, 2013 if playername and tonumber(money) then local player2 = getPlayerFromName(playername) if player2 then if tonumber(money) < 0 then return end if tonumber(money) ~= 0 then givePlayerMoney(player2,tonumber(money)) takePlayerMoney(player,tonumber(money)) end Link to comment
Chaz-CR Posted June 23, 2013 Author Share Posted June 23, 2013 Gracias Sasuke la verdad no tenia idea! Y gracias Plate por tomarte tu tiempo jaja Link to comment
Recommended Posts