global object - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: global object (
/showthread.php?tid=281299)
global object -
Speed - 05.09.2011
How to make a variable for object:
pawn Код:
if(Object = 0)
{
CreateObject(,,,
Object = 1;
}
else
{
SendClien....
}
now how to create Object enum
Re: global object -
=WoR=Varth - 05.09.2011
pawn Код:
new Object;
Object = CreateObject..............
Re: global object -
[HiC]TheKiller - 05.09.2011
pawn Код:
new object, objectID;
if (object == 1)
{
objectID = //CreateObject(....)
}
else if(!object)
{
//....
}
Do you mean something like that?
Re: global object -
Speed - 05.09.2011
no i meen something like enums
pawn Код:
if(PlayerInfo[playerid][Admin] = 1)
{
.....
}
else
{
...
}
but i want with object and no i enum, with new...