make a stock header shorter?
#1

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
Reply
#2

pawn Код:
stock AddTextItem(Header[],&str1[][])
Reply
#3

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
Reply
#4

So what u want put here
stock AddTextItem(Header[],&str1[],&str2[],&str3[],&str4[],&str5[])
?
Reply
#5

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..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)