[DUV]Binco
#3

Quote:
Originally Posted by Guilherme_Canani
Quote:
Originally Posted by Mhyfp
Eu queria um sistema pra escolher skin do jogador..
Quando ele entrar na binco e ir na posiзгo 207.7380,-101.3791,1005.2578 ( Interior : 15 )
Ele apertar a setas (ou digitar /skin1,skin2, etc) e escolher o skin dele..
Como eu faзo isso ?
pawn Code:
//OnPlayerCommandText

if(strcmp(cmd, "/skin", true) == 0)
{
if(PlayerToPoint(10.0, playerid, X, Y, Z) == 0)
{
ShowPlayerDialog(playerid,id,DIALOG_STYLE_LIST, "Skins", "CJ\nGangster", "OK", "CANCELAR");
}
return 1;
}

//OnPlayerDialogResponse

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
  if(dialogid == 1)
  {
   switch(listitem)
   {
   case 0:
  {
   SetPlayerSkin(playerid, 1);
  }
  case 1:
  {
  SetPlayerSkin(playerid, 102);
  }
  return 1;
  }
  return 0;
}
}

Tenta esse fiz na pressa
Code:
gf.pwn(26258) : error 002: only a single statement (or expression) can follow each "case"
gf.pwn(8141) : error 017: undefined symbol "id"
2 Erro
Reply


Messages In This Thread
[DUV]Binco - by Mhyfp - 11.01.2010, 23:47
Re: [DUV]Binco - by Guilherme_Canani - 12.01.2010, 00:16
Re: [DUV]Binco - by Mhyfp - 12.01.2010, 00:40
Re: [DUV]Binco - by Guilherme_Canani - 12.01.2010, 01:26
Re: [DUV]Binco - by speliarmos - 12.01.2010, 13:34
Re: [DUV]Binco - by Mhyfp - 12.01.2010, 14:15
Re: [DUV]Binco - by netado - 12.01.2010, 14:22
Re: [DUV]Binco - by Mhyfp - 12.01.2010, 14:23
Re: [DUV]Binco - by netado - 12.01.2010, 14:25
Re: [DUV]Binco - by Mhyfp - 12.01.2010, 14:30

Forum Jump:


Users browsing this thread: 1 Guest(s)