Need explaination!!
#4

Taken directly from the wiki:

Quote:

File1:
pawn Код:
static
    gsMyVar = 4;
 
MyFunc()
{
    printf("%d", gsMyVar);
}
 
#include "File2"
File2:
pawn Код:
MyFunc2()
{
    // This is wrong as gsMyVar doesn't exist here
    printf("%d", gsMyVar);
}
Reply


Messages In This Thread
Need explaination!! - by Gamer_007 - 20.04.2013, 14:28
Re: Need explaination!! - by MattyG - 20.04.2013, 14:38
Re: Need explaination!! - by Gamer_007 - 20.04.2013, 14:53
Re: Need explaination!! - by MattyG - 20.04.2013, 15:01

Forum Jump:


Users browsing this thread: 3 Guest(s)