04.02.2018, 19:06
I have this system to create ATMs ingame:
I was working, but today i tried to create a ATM and nothing happen, nothing pritting on server.log
Anybody know what could be?
PHP код:
CMD:makeatm(playerid, params[]) {
new atmid, name[30];
if(sscanf(params,"is[30]", atmid, name)) return SendClientMessage(playerid, -1, "Use: /makeatm [id] [name]");
if(atmid < 1 && atmid > MAX_ATMS) return SendClientMessage(playerid, -1, "Choose a number between 1-MAX_ATMS");
new Float:x, Float:y, Float:z, Float:vA;
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, vA);
AtmInfo[atmid][atmX] = x;
AtmInfo[atmid][atmY] = y;
AtmInfo[atmid][atmZ] = z;
AtmInfo[atmid][atmName] = name;
CreatingATMObject[playerid] = atmid;
ATMobject[atmid] = CreateObject(2942, x + (1.0 * floatsin(-vA, degrees)), y + (1.0 * floatcos(-vA, degrees)), z, 0.0, 0.0, 0.0);
EditObject(playerid, ATMobject[atmid]);
return 1;
}
Anybody know what could be?