add/remove string
#1

I'm learning scipting, but i got stucked behind this error what tells me that string allready defined.
I got tutoorial from here: https://sampwiki.blast.hk/wiki/Creating_...Leave_Messages
but if i change the "a_samp.inc" misc like that: "#define STRING (4" then it works fine. But i dont want to mess with includes. i want that pawno will compile the include files hemself. So is it possible to fix it somehow?
I have messed already exactly 13 hours with it and i wount get any help like that anymore.
Also learning everything on "LARP" GM (somekind of Roleplay GM) cuz later i'm planing to make my own noobie roleplay edit.


EDIT: Ok i tryed once more and i got it work by replaceing "string" part iwth some other world what camed on my mind. i choosed for that "mhh" But still i want to get know why i cant use it with string. What im doing wrong?
Reply
#2

you cannot define 2 times string , you can make a general string
new string[256];
and you dont define nothing more
Reply
#3

Tnx it was for good help for another that kind of problem
But im using for login messages that another variable. But doesnt it makes any damage to a_samp.inc? if it does il try to fix it with string
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)