SA-MP Forums Archive
[Ajuda] Stock - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Stock (/showthread.php?tid=598113)



Stock - Lutherdeck - 08.01.2016

Estou tentando usar uma funзгo no stock, algum me ajuda ?

Код:
12363 > carregando(playerid,627.8249, 1668.3153, 6.9922);

17026 > stock carregando(playerid, Float:destinoX[playerid], Float:destinoY[playerid], Float:destinoX[playerid]){
17027 > 	carregado[playerid] = 1;
17028 > 	pagamentov[playerid] = 800;
17029 > 	GameTextForPlayer(playerid, "~g~Carregado", 8000, 3);
17030 > 	SetPlayerMapIcon(playerid, 87, destinoX[playerid],destinoY[playerid],destinoZ[playerid], 0, 0, MAPICON_GLOBAL);
17031 > }



Re: Stock - BykiLler - 09.01.2016

carregando(playerid,627.8249, 1668.3153, 6.9922);
po mano nгo hб nessecidade de clocar a variavel gobal:

Quote:

stock carregando(playerid, Float:destX, Float:destY, Float:destX){
carregado[playerid] = 1;
pagamentov[playerid] = 800;
GameTextForPlayer(playerid, "~g~Carregado", 8000, 3);
SetPlayerMapIcon(playerid, 87, destX, destY ,destZ , 0, 0, MAPICON_GLOBAL);
}

Quote:

outro exemplo

//no comando
SendMessageId(playerid, "OI");

//no final da Script

stock SendMessageId(id, Texto[]){
new Pt[50];
format(Pt, sizeof(Pt), "%s", Texto);
return SendClientMessage(id, -1, Pt);
}