Question about variables...
#9

Quote:
Originally Posted by Whizion
View Post
^ Bump.
The syntax is written in the "core.inc" include by ITB CompuPhase.

pawn Code:
native getproperty(id, const name[], value=cellmin, string[], size=sizeof (string));
native setproperty(id, const name[], value=cellmin, const string[]);
native deleteproperty(id, const name[], value=cellmin);
native existproperty(id, const name[], value=cellmin);
Example

pawn Code:
setproperty(0, "Candy", cellmin, "Hello");

new str[256];
getproperty(0, "Candy", cellmin, str);

printf("The value of Candy is %s", str);
If you haven't the source of your old GameMode, you can't get that variable... It must be public
Reply


Messages In This Thread
Question about variables... - by Whizion - 10.09.2011, 11:27
Re: Question about variables... - by Sasino97 - 10.09.2011, 11:40
Re: Question about variables... - by Lorenc_ - 10.09.2011, 11:51
Re: Question about variables... - by Vince - 10.09.2011, 12:02
Re: Question about variables... - by Whizion - 10.09.2011, 12:08
Re: Question about variables... - by Whizion - 10.09.2011, 17:01
Re: Question about variables... - by Max_Coldheart - 10.09.2011, 17:07
Re: Question about variables... - by Whizion - 10.09.2011, 19:40
Re: Question about variables... - by Sasino97 - 10.09.2011, 19:42

Forum Jump:


Users browsing this thread: 1 Guest(s)