Ajuda no GM - 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 no GM (
/showthread.php?tid=270330)
Ajuda no GM -
kNOWW - 19.07.2011
Tenho aqui uma duvida ..
Vejam que no GM PEN1 SF e no PEN1 LS a imagem fica assim :S
/imageshack/img560/4953/13131.png
O que posso fazer para resolver este bug ?
Agradeзo muito
Re: Ajuda no GM -
ViniBorn - 20.07.2011
pawn Код:
SetPlayerInterior(playerid, 0);
Re: Ajuda no GM -
Macintosh - 20.07.2011
Como o viniborn postou, use a funзгo SetPlayerInterior para setar o interior do player naquele lugar. Mais nem sempre o interior й 0. Pegue o interior e substitua pelo 0.
Re: Ajuda no GM -
Shadoww5 - 20.07.2011
Caso nгo saiba qual o interior em que vocк estб, use este comando e vб testando os interiores individualmente.
Quando o bug for solucionado vocк saberб que este й o interior correto.
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/int", true) == 0)
{
new s[256];
s = strtok(cmdtext, idx);
if(!strlen(s)) return SendClientMessage(playerid, 0xFFFFFFFF, "USO: /int [INTERIOR ID]");
SetPlayerInterior(playerid, strval(s));
format(s, sizeof s, "Interior ID: %d", strval(s));
SendClientMessage(playerid, 0xFFFF00FF, str);
return 1;
}
return 0;
}
Re: Ajuda no GM -
ViniBorn - 20.07.2011
kNOWW, й mais facil vocк dizer qual й esse lugar que estб na SS.
Com o lugar fica fбcil saber qual o interior correto, e aн voce coloca no SetPlayerInterior.
Re: Ajuda no GM -
Falcon. - 20.07.2011
Quote:
Originally Posted by Shadoww5
Caso nгo saiba qual o interior em que vocк estб, use este comando e vб testando os interiores individualmente.
Quando o bug for solucionado vocк saberб que este й o interior correto.
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/int", true) == 0)
{
new s[256];
s = strtok(cmdtext, idx);
if(!strlen(s)) return SendClientMessage(playerid, 0xFFFFFFFF, "USO: /int [INTERIOR ID]");
SetPlayerInterior(playerid, strval(s));
format(s, sizeof s, "Interior ID: %d", strval(s));
return 1;
}
return 0;
}
|
Nгo tem nada faltando neste cуdigo nгo ?...
Re: Ajuda no GM -
Macintosh - 20.07.2011
Quote:
Originally Posted by Falcon.Sixe
Nгo tem nada faltando neste cуdigo nгo ?...
|
Sу usar /interior que й um comando padrгo do SA-MP que ele lhe mostrarб o interior em que estб, dai sу setar no teleporte.
Re: Ajuda no GM -
Shadoww5 - 20.07.2011
Quote:
Originally Posted by Falcon.Sixe
Nгo tem nada faltando neste cуdigo nгo ?...
|
#fail valeu por falar
Cуdigo corrigido.
Re: Ajuda no GM -
Falcon. - 20.07.2011
Quote:
Originally Posted by Shickcard
Sу usar /interior que й um comando padrгo do SA-MP que ele lhe mostrarб o interior em que estб, dai sу setar no teleporte.
|
Sim eu sei, estava a falar do SendClientMessage que faltava.
Quote:
Originally Posted by Shadoww5
#fail valeu por falar
Cуdigo corrigido.
|
===============================
Parabйns este й o seu milionйsimo post.
Clique
>> Aqui <<para ganhar um iPhone.
===============================