make a stock header shorter? - 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: make a stock header shorter? (
/showthread.php?tid=193117)
make a stock header shorter? -
The_Gangstas - 24.11.2010
like how do i make this shorter..
pawn Код:
stock AddTextItem(Header[],&str1[],&str2[],&str3[],&str4[],&str5[])
like just
stock AddTextItem(Header[],&str1[])
which would apply for any amount of str's
Re: make a stock header shorter? -
Jefff - 24.11.2010
pawn Код:
stock AddTextItem(Header[],&str1[][])
Re: make a stock header shorter? -
The_Gangstas - 24.11.2010
pawn Код:
C:\Documents and Settings\Karim\My Documents\Grand Theft Auto San Andreas\SA-MP SERVER(CNR)\gamemodes\COPSAR~1.pwn(13632) : error 067: variable cannot be both a reference and an array (variable "str1")
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
cant have & with []?
i wanna make a short function to create these's
http://gyazo.com/e21d815163a2413d614548f4b411467d.png
Re: make a stock header shorter? -
Jefff - 24.11.2010
So what u want put here
stock AddTextItem(Header[],&str1[],&str2[],&str3[],&str4[],&str5[])
?
Re: make a stock header shorter? -
The_Gangstas - 24.11.2010
i mean like, i for every addtextitem i wont have the same exact amount of str's?
maybe say the str's go up to 8 and i only use 5 it would give a error right? and u cant use &str[] its giving a error
if u put & with str[] and i need str to be a string..