SA-MP Forums Archive
Skin..... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Skin..... (/showthread.php?tid=171729)



Skin..... - xir - 27.08.2010

I need help I tryed to copy the skin changer dialog from here http://forum.sa-mp.com/showthread.ph...highlight=Skin

Errors

Quote:

C:\Programmer\Rockstar Games\GTA San Andreas\server\gamemodes\DM.pwn(347) : error 055: start of function body without function header
C:\Programmer\Rockstar Games\GTA San Andreas\server\gamemodes\DM.pwn(349) : error 010: invalid function or declaration
C:\Programmer\Rockstar Games\GTA San Andreas\server\gamemodes\DM.pwn(351) : error 055: start of function body without function header
C:\Programmer\Rockstar Games\GTA San Andreas\server\gamemodes\DM.pwn(353) : error 021: symbol already defined: "ShowPlayerDialog"
C:\Programmer\Rockstar Games\GTA San Andreas\server\gamemodes\DM.pwn(355) : error 010: invalid function or declaration
C:\Programmer\Rockstar Games\GTA San Andreas\server\gamemodes\DM.pwn(357) : error 054: unmatched closing brace ("}")
C:\Programmer\Rockstar Games\GTA San Andreas\server\gamemodes\DM.pwn(359) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


7 Errors.

link to the script

http://pastebin.com/CS3C7UKK

Quote:

{

if(strcmp(cmdtext, "/skin", true) == 0)

{

ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Skin Change", "Enter the skin id you wish to have below", "Confirm", "Cancel");

return 1;

}

return 0;
}

ЁThis is under "OnPlayercommandtext" but I also have a duel script so I put it right under the duel script .. but idk why


Re: Skin..... - xir - 27.08.2010

Someone please help


Re: Skin..... - Nonameman - 27.08.2010

Here it is: http://pastebin.com/A0WmshnH


Re: Skin..... - xir - 27.08.2010

Hey Nonameman, thanks for responding but got 4 errors

Quote:

C:\Programmer\Rockstar Games\GTA San Andreas\server\gamemodes\DM.pwn(34 : error 055: start of function body without function header
C:\Programmer\Rockstar Games\GTA San Andreas\server\gamemodes\DM.pwn(349) : error 010: invalid function or declaration
C:\Programmer\Rockstar Games\GTA San Andreas\server\gamemodes\DM.pwn(352) : error 010: invalid function or declaration
C:\Programmer\Rockstar Games\GTA San Andreas\server\gamemodes\DM.pwn(354) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.




Re: Skin..... - Nonameman - 27.08.2010

Dunno why, when I compiled it, there were no problems..
Did you included <a_samp>?


Re: Skin..... - xir - 27.08.2010

Quote:
Originally Posted by Nonameman
Посмотреть сообщение
Dunno why, when I compiled it, there were no problems..
Did you included <a_samp>?
Of course... Wait here is the link for the whole gm

http://pastebin.com/N9hVFgBN

Please check it and help


Re: Skin..... - Bumbis - 27.08.2010

http://pastebin.com/gUj5ayGL

Try this..

I saw that you didn't put that /skin command under OnPlayerCommandText Callback, but why just you don't change that command to dcmd or zcmd?


Re: Skin..... - xir - 27.08.2010

Thanks silvis! It worked, thank you!


Re: Skin..... - xir - 27.08.2010

I just figured out that /skin ingame cmd didn't work :/ ? Why


Re: Skin..... - Bumbis - 27.08.2010

http://pastebin.com/eNx4McZV

Try this now.. It might work.