26.05.2012, 01:08
se nгo existir o atm descrito no atmid oq vai acontecer aqui:
?
pawn Code:
stock carregaratm(atmid)
{
new string[128];
format(string,sizeof(string),"Atm/%d.Text",atmid);
Atm[atmid][pX] = DOF2_GetFloat(string,"X");
Atm[atmid][pY] = DOF2_GetFloat(string,"Y");
Atm[atmid][pZ] = DOF2_GetFloat(string,"Z");
Atm[atmid][rotX] = DOF2_GetFloat(string , "rotX");
Atm[atmid][rotY] = DOF2_GetFloat(string , "rotY");
Atm[atmid][rotZ] = DOF2_GetFloat(string , "rotZ");
atmid = DOF2_GetInt(string,"ID");
Atm[atmid][pCriado] = DOF2_GetInt(string,"CRIADO");
Atm[atmid][object] = DOF2_GetInt(string,"OBJECT");
Atm[atmid][object] = CreateObject(2942,Atm[atmid][pX],Atm[atmid][pY],Atm[atmid][pZ],0.0,0.0,100.0);
format(string,sizeof(string),"Caixa Eletronico ID: %d",atmid);
Text[atmid] = Create3DTextLabel(string,0x00FF00AA,Atm[atmid][pX],Atm[atmid][pY],Atm[atmid][pZ],35,0,0);
return 1;
}