Help i'm new - 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 i'm new (
/showthread.php?tid=192196)
Help i'm new -
NewYork-Roleplay - 21.11.2010
Hello, Can you help me? How to fixed this Why i got crashed.
Sorry i'm new
Код:
if(strcmp(cmd, "/clothes", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsAtClothShop(playerid))
}
GetPlayerWeapons(playerid);
ForceClassSelection(playerid);
SetPlayerHealth(playerid,0)
}
SetPlayerHealth(playerid,50);
SetPlayerWeapons(playerid);
SetPlayerSpawn(playerid);
}
}
return 1;
}
Re: Help i'm new -
NewYork-Roleplay - 21.11.2010
I'm know i'm new no one help please...
I'm new in samp Plx.
Re: Help i'm new -
TheNuttyScientist - 21.11.2010
Can you explain in more detail? Did Pawno crash, or did your game crash?
Re: Help i'm new -
TheXIII - 21.11.2010
Look at your
curly-braces.
Re: Help i'm new -
XoSarahMoX - 21.11.2010
Umm switch the:
Код:
if(IsAtClothShop(playerid))
with this:
Код:
if(IsPlayerInRangeOfPoint(playerid,10,X,Y,Z)
Dont forget change the XYZ to the coords you want the player to be close to so he/she can do /clothes
Re: Help i'm new -
NewYork-Roleplay - 21.11.2010
i'm use RP gamemodes But i /clothes to Class selections..
Re: Help i'm new -
TheXIII - 21.11.2010
Quote:
Originally Posted by XoSarahMoX
Umm switch the:
Код:
if(IsAtClothShop(playerid))
with this:
Код:
if(IsPlayerInRangeOfPoint(playerid,10,X,Y,Z)
Dont forget change the XYZ to the coords you want the player to be close to so he/she can do /clothes
|
Don't do that. Look at the braces.
Hint: One is pointing the wrong way, and another one needs to go all together.
I will not post the code. This way you'll not learn anything.
Re: Help i'm new -
XoSarahMoX - 21.11.2010
Quote:
Originally Posted by TheXIII
Don't do that. Look at the braces. Hint: One is pointing the wrong way, and another one needs to go all together.
I will not post the code. This way you'll not learn anything.
|
Yeah and some of the lines arent ending correctly my hint^-^ = ;
Re: Help i'm new -
TheXIII - 21.11.2010
Quote:
Originally Posted by XoSarahMoX
Yeah and some of the lines arent ending correctly my hint^-^ = ;
|
Oh. Yeah, and that. Didn't notice
Quote:
Originally Posted by NewYork-Roleplay
Hey Can you fixed it Please 
|
Read, think, act.
Re: Help i'm new -
NewYork-Roleplay - 21.11.2010
can you give cmd??
Please. i'm new
I'm do /clothes And I'm in class Selections.
And I spawn It to Binco..
Re: Help i'm new -
NewbBeginner - 21.11.2010
Код:
if(strcmp(cmd, "/clothes", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(IsAtClothShop(playerid))
{ // HERE WAS YOUR ONE PROBLEM
GetPlayerWeapons(playerid);
ForceClassSelection(playerid);
SetPlayerHealth(playerid,0)
}
SetPlayerHealth(playerid,50);
SetPlayerWeapons(playerid);
SetPlayerSpawn(playerid);
}
}
return 1;
}
Now figure out our second problem.