[ajuda]/paisana
#1

Como й que posso rondar as skins do player ao fazer /paisana tipo SetPlayerSkin(playerid,(skin));
Reply
#2

simples:


Topo do GM


pawn Код:
new Skins [] =
{
   2,
   290,
   291,
   292,
   299
};

o comando:


pawn Код:
if(strcmp(cmdtext, "/paisana", true) == 0)
{
  new Skins = random(sizeof(Skins));
  SetPlayerSkin(playerid,Skins[Skins]);
}



PS: Pelo que entendi, quer que o player pege uma skin alietуria, de civil...
Reply
#3

Код:
C:\Program Files\Rockstar Games\GTA San Andreas\server\Server\gamemodes\BCRP.pwn(5512) : warning 219: local variable "Skins" shadows a variable at a preceding level
C:\Program Files\Rockstar Games\GTA San Andreas\server\Server\gamemodes\BCRP.pwn(5513) : error 028: invalid subscript (not an array or too many subscripts): "Skins"
C:\Program Files\Rockstar Games\GTA San Andreas\server\Server\gamemodes\BCRP.pwn(5513) : warning 215: expression has no effect
C:\Program Files\Rockstar Games\GTA San Andreas\server\Server\gamemodes\BCRP.pwn(5513) : error 001: expected token: ";", but found "]"
C:\Program Files\Rockstar Games\GTA San Andreas\server\Server\gamemodes\BCRP.pwn(5513) : error 029: invalid expression, assumed zero
C:\Program Files\Rockstar Games\GTA San Andreas\server\Server\gamemodes\BCRP.pwn(5513) : fatal error 107: too many error messages on one line
Код:
							
        new Skins = random(sizeof(Skins));//5512
  		SetPlayerSkin(Skins[Skins]);//5513
Reply
#4

Quote:
Originally Posted by tshadow
Код:
C:\Program Files\Rockstar Games\GTA San Andreas\server\Server\gamemodes\BCRP.pwn(5512) : warning 219: local variable "Skins" shadows a variable at a preceding level
C:\Program Files\Rockstar Games\GTA San Andreas\server\Server\gamemodes\BCRP.pwn(5513) : error 028: invalid subscript (not an array or too many subscripts): "Skins"
C:\Program Files\Rockstar Games\GTA San Andreas\server\Server\gamemodes\BCRP.pwn(5513) : warning 215: expression has no effect
C:\Program Files\Rockstar Games\GTA San Andreas\server\Server\gamemodes\BCRP.pwn(5513) : error 001: expected token: ";", but found "]"
C:\Program Files\Rockstar Games\GTA San Andreas\server\Server\gamemodes\BCRP.pwn(5513) : error 029: invalid expression, assumed zero
C:\Program Files\Rockstar Games\GTA San Andreas\server\Server\gamemodes\BCRP.pwn(5513) : fatal error 107: too many error messages on one line
Код:
							
        new Skins = random(sizeof(Skins));//5512
  		SetPlayerSkin(Skins[Skins]);//5513

pawn Код:
new Skins = random(sizeof(Skins));//5512
        SetPlayerSkin(playerid,Skins[Skins]);//5513
Reply
#5

Jб tirei os erros, mas fez skins que nгo meti
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)