Jump to content
  • 0

cum fac ca noii inregistrati sa primeasca diferite skinuri


crazyzee

Question

10 answers to this question

Recommended Posts

new

RandomSkins [ ] [ 3 ] =

{

    { 115 } , // Schimba cu ce id de skin vrei tu.

   

    { 116 } , // Schimba cu ce id de skin vrei tu.

   

    { 117// Schimba cu ce id de skin vrei tu.

   

} ;

public OnPlayerSpawn ( playerid )

{

    new

rand = random ( sizeof ( RandomSkins ) ) ;

    SetPlayerSkin ( playerid , RandomSkins [ rand ] [ 0 ] ) ; // Seteaza skin-ul jucatorului la intamplare.

   

    return ( 1 ) ;

   

}

Link to comment
Share on other sites

new

Float:RandomSkins [ ] [ 3 ] =

{

    { 115 } , // Schimba cu ce id de skin vrei tu.

   

    { 116 } , // Schimba cu ce id de skin vrei tu.

   

    { 117// Schimba cu ce id de skin vrei tu.

   

} ;

public OnPlayerSpawn ( playerid )

{

    new

rand = random ( sizeof ( RandomSkins ) ) ;

    SetPlayerSkin ( playerid , RandomSkins [ rand ] [ 0 ] ) ; // Seteaza skin-ul jucatorului la intamplare.

   

    return ( 1 ) ;

   

}

Primesc erorile astea :

[pawn]D:\Backup SAMP Server\gamemodes\godfatherNEW.pwn(51583) : warning 235: public function lacks forward declaration (symbol "wartimer")

D:\Backup SAMP Server\gamemodes\godfatherNEW.pwn(52157) : warning 213: tag mismatch

D:\Backup SAMP Server\gamemodes\godfatherNEW.pwn(52159) : warning 213: tag mismatch

D:\Backup SAMP Server\gamemodes\godfatherNEW.pwn(52161) : warning 213: tag mismatch

D:\Backup SAMP Server\gamemodes\godfatherNEW.pwn(52167) : error 021: symbol already defined: "JB_OnPlayerSpawn"

D:\Backup SAMP Server\gamemodes\godfatherNEW.pwn(52173) : warning 213: tag mismatch

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Error.

[/pawn]

Am cautat in GM [pawn]JB_OnPlayerSpawn[/pawn] dar nu gasesc nicaieri , la restul nu ma pricep scz :-|

RPG.VIBEPLAY.RO

Recomand acest server Romanesc bY woozie aka. weedluver aka. undertaker !!

Link to comment
Share on other sites

Fa-ti update la JunkBuster si fa un forward functiei wartimer.

EDIT: Scuze, am gresit eu codul.Am editat postul anterior.

Cum fac update la junkbuster , adica de unde sa il iau pe cel bun , si forward la fel cum sa fac.

RPG.VIBEPLAY.RO

Recomand acest server Romanesc bY woozie aka. weedluver aka. undertaker !!

Link to comment
Share on other sites

Click

Exemplu:

Public-ul tau seamana cu asta:(exemplu doar)

public Test( playerid, message[ ], args )

Forwardul tau trebuie sa arata exact ca public-ul.

forward Test( playerid, message[ ], args ); // atentie! la forward trebuie sa pui ; la sfarsit

Si poti pune sus in script forward-ul.

Link to comment
Share on other sites

Acum mai primesc eroarea asta si nu stiu cum sa o rezolv

[pawn]D:\Backup SAMP Server\gamemodes\godfatherNEW.pwn(52479) : warning 203: symbol is never used: "RandomSkins"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Warning.

[/pawn]

RPG.VIBEPLAY.RO

Recomand acest server Romanesc bY woozie aka. weedluver aka. undertaker !!

Link to comment
Share on other sites

Acum mai primesc eroarea asta si nu stiu cum sa o rezolv

[pawn]D:\Backup SAMP Server\gamemodes\godfatherNEW.pwn(52479) : warning 203: symbol is never used: "RandomSkins"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

1 Warning.

[/pawn]

Ai adaugat new-ul dar l-ai folosit? Prin al folosii, ma refer daca ai pus partea de la OnPlayerSpawn din exemplul dat de mine, in cod.

Link to comment
Share on other sites

Dama mai pun si asta [pawn]public OnPlayerSpawn ( playerid )

{

    new

      rand = random ( sizeof ( RandomSkins ) ) ;

    SetPlayerSkin ( playerid , RandomSkins [ rand ] [ 0 ] ) ; // Seteaza skin-ul jucatorului la intamplare.

   

    return ( 1 ) ;

   

}[/pawn] Imi da eroarea ca functia este folosita de 2 ori ...

RPG.VIBEPLAY.RO

Recomand acest server Romanesc bY woozie aka. weedluver aka. undertaker !!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.