SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 2 of 2
Search took 0.00 seconds.
Search: Posts Made By: Misiur
Forum: Tools and Files 08/03/2014, 10:47 AM
Replies: 10
Views: 7,059
Posted By Misiur
Re: PHP - A map that displays a red square at specified 2d coords

I meant that values passed to imagefilledrectangle should be checked first if they are valid coords (and in this case - positive values).
Forum: Tools and Files 06/03/2014, 11:52 AM
Replies: 10
Views: 7,059
Posted By Misiur
Re: PHP - A map that displays a red square at specified 2d coords

Hey, at least cast the variable to integer!
$x = (int) $_GET["x"] / 3.90;
$y = (int) $_GET["y"] / 3.90;

Why?



Oh, and well, I don't think negative dimensions are a good input too, so...
Showing results 1 to 2 of 2

 

All times are GMT. The time now is 02:42 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.