27.07.2015, 04:11
Hola,
Quisiera saber si es malo usar la funciуn stock para cosas asн por ejemplo:
Y otros stocks que sуlo los utilizo para setear muchas variables y eso, si es malo, їtendrнa que usar el forward & public y por quй?, gracias por leer.
Quisiera saber si es malo usar la funciуn stock para cosas asн por ejemplo:
Quote:
stock ActualizarCuenta(playerid) { new Float,Float:y,Float:z,skin,interior,vw; GetPlayerPos(playerid,x,y,z); vw = GetPlayerVirtualWorld(playerid); skin = GetPlayerSkin(playerid); PlayerInfo[playerid][jPosX] = x; PlayerInfo[playerid][jPosY] = y; PlayerInfo[playerid][jPosZ] = z; interior = GetPlayerInterior(playerid); PlayerInfo[playerid][jInt] = interior; PlayerInfo[playerid][jVW] = vw; PlayerInfo[playerid][jSkin] = skin; GetPlayerWeaponData(playerid, 0, PlayerInfo[playerid][jArmaID1], PlayerInfo[playerid][jBalas1]); GetPlayerWeaponData(playerid, 1, PlayerInfo[playerid][jArmaID2], PlayerInfo[playerid][jBalas2]); GetPlayerWeaponData(playerid, 2, PlayerInfo[playerid][jArmaID3], PlayerInfo[playerid][jBalas3]); GetPlayerWeaponData(playerid, 3, PlayerInfo[playerid][jArmaID4], PlayerInfo[playerid][jBalas4]); GetPlayerWeaponData(playerid, 4, PlayerInfo[playerid][jArmaID5], PlayerInfo[playerid][jBalas5]); GetPlayerWeaponData(playerid, 5, PlayerInfo[playerid][jArmaID6], PlayerInfo[playerid][jBalas6]); GetPlayerWeaponData(playerid, 6, PlayerInfo[playerid][jArmaID7], PlayerInfo[playerid][jBalas7]); GetPlayerWeaponData(playerid, 7, PlayerInfo[playerid][jArmaID8], PlayerInfo[playerid][jBalas8]); GetPlayerWeaponData(playerid, 8, PlayerInfo[playerid][jArmaID9], PlayerInfo[playerid][jBalas9]); GetPlayerWeaponData(playerid, 9, PlayerInfo[playerid][jArmaID10], PlayerInfo[playerid][jBalas10]); return 1; } |