Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×
  • 0

Skin-uri la intamplare


Question

Posted

Deci imi da niste erori.Am pus asa:

#include <a_samp>

new skins[] = {

  0,

  1,

  2

};

public OnGameModeInit()

{

SetPlayerSkin(playerid, skins[random(3)]

return 1;

}

si intalnesc urmatoarele erori:

D:\Jocuri\Rockstar Games\GTA San Andreas\Server\filterscripts\Skin.pwn(3) : error 001: expected token: ";", but found "&"

D:\Jocuri\Rockstar Games\GTA San Andreas\Server\filterscripts\Skin.pwn(7) : error 010: invalid function or declaration

D:\Jocuri\Rockstar Games\GTA San Andreas\Server\filterscripts\Skin.pwn(11) : error 017: undefined symbol "playerid"

D:\Jocuri\Rockstar Games\GTA San Andreas\Server\filterscripts\Skin.pwn(11) : error 001: expected token: ";", but found "]"

D:\Jocuri\Rockstar Games\GTA San Andreas\Server\filterscripts\Skin.pwn(11) : error 029: invalid expression, assumed zero

D:\Jocuri\Rockstar Games\GTA San Andreas\Server\filterscripts\Skin.pwn(11) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

6 Errors.

Care-i problema?

2 answers to this question

Recommended Posts

Posted

Pune asa:

new skins[] = { 0, 1, 2 };


Asta SetPlayerSkin(playerid, skins[random(3)] stergeo si pune la OnPlayerConnect(playerid) in aceasta forma:

SetPlayerSkin( playerid, skins[ random( 3 ) ] );

142sj0l.png

Underground-GFX

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.