[Include] Atm Creator 2.0
#3

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;
}
?
Reply


Messages In This Thread
Atm Creator 2.0 - by wevertonneves - 26.05.2012, 00:33
Re: Atm Creator 2.0 - by [JD]BlackFire - 26.05.2012, 01:02
Re: Atm Creator 2.0 - by Lucas_Alemao - 26.05.2012, 01:08
Re: Atm Creator 2.0 - by dPlaYer_ - 26.05.2012, 01:24
Re: Atm Creator 2.0 - by paulor - 26.05.2012, 01:26
Re: Atm Creator 2.0 - by Abravanel - 26.05.2012, 01:39
Re: Atm Creator 2.0 - by wevertonneves - 26.05.2012, 01:44
Re: Atm Creator 2.0 - by paulor - 26.05.2012, 02:42
Re: Atm Creator 2.0 - by wevertonneves - 26.05.2012, 03:09
Re: Atm Creator 2.0 - by paulor - 26.05.2012, 11:33

Forum Jump:


Users browsing this thread: 2 Guest(s)