Quote:
Originally Posted by Spectat0rDE
Basic includes are:
Код:
#include <a_samp>
#include <core>
#include <float>
#include <sscanf2>
You put these on top of your script.
|
Doing that alone, doesn't make it work...
OP, don't trust the randoms that simply throw up code to you, it's highly likely they'll lead you astray and teach you bad habits.
You need to look at the tutorials, released code, and the pawn handbook. With the ones who are simply throwing up code, they are themselves usually copying and pasting from their own gamemode, and quite often when they do this they NEGLECT to tell you of the OTHER STEPS you need to take to get their code working. (Example above never even mentioned you needed to download sscanf, but will likely edit their response to get it 'right')
Also, ignore the tools who will no doubt say it's not worth it, or that samp is dead, as really, coding code, isn't dead... While they can't get players to play with them, the benefit of learning a simple coding language and getting a start into a debugging and code review mentality, is better than having your 'joy' rely on other players actually joining.
And before you start repping people simply because you think they helped you, just hold off repping, until your code is verified to work, as as I said, if they are copy-pasting looking for reps, they'll post
anything to get that rep.