Help me fix it. - 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: Help me fix it. (
/showthread.php?tid=259242)
Well, please remove this thread, I know how to work with pawno now. please remove it. -
AcTopNN - 03.06.2011
Well, please remove this thread, I know how to work with pawno now. please remove it.
Re: Help me fix it. -
Stigg - 03.06.2011
You need to update your server to the latest release.
http://www.sa-mp.com/download.php
Re: Help me fix it. -
AcTopNN - 03.06.2011
What? did not understand what to do.......
EDIT: Okay,I check it..
Re: Help me fix it. -
Stigg - 03.06.2011
Quote:
Originally Posted by AcTopNN
What? did not understand what to do.......
|
Download the latest server package and recompile your script with the new includes.
Re: Help me fix it. -
Ash. - 03.06.2011
Quote:
Originally Posted by Stigg
Download the latest server package and recompile your script with the new includes.
|
+1.
However, from the look of your file paths, you already have downloaded and are trying to compile with 0.3c includes?
Re: Help me fix it. -
AcTopNN - 03.06.2011
Ok, it works, thanks
But now it writes to me "Only CJ Skin"
How do I change it to be all skins?
Re: Help me fix it. -
Stigg - 03.06.2011
Quote:
Originally Posted by AcTopNN
Ok, it works, thanks
But now it writes to me "Only CJ Skin"
How do I change it to be all skins?
|
Use this in your main gamemode:
pawn Код:
public OnGameModeInit()
{
for(new i = 0; i < 299; i++)
{
if(IsValidSkin(i))
{
AddPlayerClass(i,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
}
}
return 1;
}
With this stock.
pawn Код:
stock IsValidSkin(SkinID)
{
if(0 < SkinID < 300)
{
switch(SkinID)
{
case 3..6, 8, 42, 65, 74, 86, 119, 149, 208, 273, 289: return 0;
}
return 1;
}
return 0;
}
Gives you all valid skins.
Re: Help me fix it. -
AcTopNN - 03.06.2011
Quote:
Originally Posted by Stigg
Use this:
pawn Код:
public OnGameModeInit() { for(new i = 0; i < 299; i++) { if(IsValidSkin(i)) { AddPlayerClass(i,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1); } } return 1; }
With this stock.
pawn Код:
stock IsValidSkin(SkinID) { if(0 < SkinID < 300) { switch(SkinID) { case 3..6, 8, 42, 65, 74, 86, 119, 149, 208, 273, 289: return 0; } return 1; } return 0; }
Gives you all valid skins.
|
What i need edit dude?
Re: Help me fix it. -
Stigg - 03.06.2011
Quote:
Originally Posted by AcTopNN
What i need edit dude?
|
Put this under your OnGameModeInit()
pawn Код:
for(new i = 0; i < 299; i++)
{
if(IsValidSkin(i))
{
AddPlayerClass(i,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1);
}
}
And this at the bottom of your script, not in a callback.
pawn Код:
stock IsValidSkin(SkinID)
{
if(0 < SkinID < 300)
{
switch(SkinID)
{
case 3..6, 8, 42, 65, 74, 86, 119, 149, 208, 273, 289: return 0;
}
return 1;
}
return 0;
}
Re: Help me fix it. -
AcTopNN - 03.06.2011
Quote:
Originally Posted by Stigg
Put this under your OnGameModeInit()
pawn Код:
for(new i = 0; i < 299; i++) { if(IsValidSkin(i)) { AddPlayerClass(i,0.0,0.0,0.0,0.0,-1,-1,-1,-1,-1,-1); } }
And this at the bottom of your script, not in a callback.
pawn Код:
stock IsValidSkin(SkinID) { if(0 < SkinID < 300) { switch(SkinID) { case 3..6, 8, 42, 65, 74, 86, 119, 149, 208, 273, 289: return 0; } return 1; } return 0; }
|
I do not understand the script
Can you explain to me where it is "My OnGameModeInit?