SA-MP Forums Archive
add/remove string - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: add/remove string (/showthread.php?tid=92433)



add/remove string - Cracker - 20.08.2009

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?


Re: add/remove string - HuRRiCaNe - 20.08.2009

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


Re: add/remove string - Cracker - 20.08.2009

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