undefined
#1

I've used "zone" in other lines, before this one but now its says that its undefined on this line.
pawn Код:
format(string, sizeof(string), "HQ: Location: %s, Crime: %s, Suspect: Unknown",zone, PlayerCrime[playerid][pAccusing]);
Reply
#2

perhaps variable zone is not global
Reply
#3

You have to define it again for that part of the code, above that line.
Reply
#4

Quote:
Originally Posted by HurtLocker
Посмотреть сообщение
perhaps variable zone is not global
So how should i make it global..
Reply
#5

define it out of any function like public/stock
Reply
#6

Quote:
Originally Posted by HurtLocker
Посмотреть сообщение
define it out of any function like public/stock
mind to make the public and stock codes so i will add it?
Reply
#7

no man thats not what I meant. if you use this for example:
pawn Код:
public example()
{
new var=26;
code code code
}
and then try to use variable var here:
pawn Код:
CMD:fire(playerid, params[])
{
GivePlayerWeapon(playerid, var, 500);
return 1;
}
you will receive message that var is undefined while you think that you did define it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)