Help i'm new
#1

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;
	}
Reply
#2

I'm know i'm new no one help please...
I'm new in samp Plx.
Reply
#3

Can you explain in more detail? Did Pawno crash, or did your game crash?
Reply
#4

Look at your curly-braces.
Reply
#5

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
Reply
#6

i'm use RP gamemodes But i /clothes to Class selections..
Reply
#7

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.
Reply
#8

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^-^ = ;
Reply
#9

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.
Reply
#10

can you give cmd??
Please. i'm new

I'm do /clothes And I'm in class Selections.
And I spawn It to Binco..
Reply
#11

Код:
	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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)