20.10.2012, 11:09
Ok I have a problem with this code I'm trying to make.
I want to be able to do /cmd [number]. and [number] changes in the following:
But the CreateObject is not in the same public function, it's in a whole other public function.
For example:
I want to be able to do /cmd [number]. and [number] changes in the following:
Код:
CreateObject([number], x , y, z, rx,ry,rz);
For example:
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/cmd", cmdtext, true, 10) == 0) { set[number] return 1; } return 0; } public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { CreateObject([number],x,y,z,rx,ry,rz) return 1; }