[Ajuda] Stock
#1

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 > }
Reply
#2

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);
}

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)