Creating a function
#3

Quote:

error 001: expected token: ";", but found "}"

I think this is from another part of your script, but for the other errors:
__________________________________________________ _________________________________________
Quote:

error 017: undefined symbol "playerid"

You are trying to send a message to "playerid":
pawn Код:
SendClientMessage(playerid, YELLOW, string);
Yet you didn't define who "playerid" is, as you can see on your function, you only define "bizid" and "bizname" in the parameters.
pawn Код:
ChangeBizInfo(bizid,bizname[])
And you haven't defined it anywhere else in your function either.
__________________________________________________ _________________________________________
Quote:

error 017: undefined symbol "BizLabel"

Delete3DTextLabel(BizLabel[bizid]);
You didn't define "BizLabel" anywhere, example:
pawn Код:
BizLabel[bizid] = Create3DTextLabel( ... );
__________________________________________________ _________________________________________
Quote:

warning 219: local variable "bizid" shadows a variable at a preceding level
warning 219: local variable "bizname" shadows a variable at a preceding level

You define "bizid" and "bizname" globally outside your function, but then you define it again in your function parameters.
pawn Код:
ChangeBizInfo(bizid,bizname[])
Therefore when you etc. try to format "bizname", it doesn't know which one to use.
You should only use them in your function parameters, delete the global ones.
Reply


Messages In This Thread
Creating a function - by Alvin007 - 17.02.2015, 20:18
Re: Creating a function - by HazardouS - 17.02.2015, 20:40
Re: Creating a function - by CalvinC - 17.02.2015, 20:42
Re : Creating a function - by Alvin007 - 17.02.2015, 21:11
Re: Creating a function - by CalvinC - 17.02.2015, 21:24
Re : Creating a function - by Alvin007 - 17.02.2015, 21:34
Re : Creating a function - by Alvin007 - 18.02.2015, 10:48
Re: Re : Creating a function - by Gammix - 18.02.2015, 13:22
Re : Creating a function - by Alvin007 - 19.02.2015, 11:08
Re: Re : Creating a function - by Excel™ - 19.02.2015, 11:34

Forum Jump:


Users browsing this thread: 1 Guest(s)