What's wrong ?
#1

Код:
	if(strcmp(cmdtext,"/putzombie", true, 10) == 0)
	{
 		new id = strval(cmdtext[11]); //this is the id of the player whos team your trying to change
		team[id] = 2;
		infected[playerid] = 0;
		SetPlayerPos(playerid,X,Y,Z);
		SetPlayerColor(playerid,ZRED);
		SetPlayerTeam(playerid, 2);
		SetPlayerHealth(playerid, 200);
 		SetPlayerSkin(playerid,162);
		GameTextForPlayer(playerid,"~r~Zombie: ~b~/hide",10000,1);
  		return 1;
	}
when I try it my server crashes
Reply
#2

Quote:
Originally Posted by marinov
Посмотреть сообщение
Код:
	if(strcmp(cmdtext,"/putzombie", true, 10) == 0)
	{
 		new id = strval(cmdtext[11]); //this is the id of the player whos team your trying to change
		team[id] = 2;
		infected[playerid] = 0;
		SetPlayerPos(playerid,X,Y,Z);
		SetPlayerColor(playerid,ZRED);
		SetPlayerTeam(playerid, 2);
		SetPlayerHealth(playerid, 200);
 		SetPlayerSkin(playerid,162);
		GameTextForPlayer(playerid,"~r~Zombie: ~b~/hide",10000,1);
  		return 1;
	}
when I try it my server crashes
LOL

pawn Код:
SetPlayerPos(playerid,X,Y,Z);
Don't just copy and paste code that is given to you.
Reply
#3

why not ? it is not working anyways
Reply
#4

Actually read the code..

This forum requires that you wait 120 seconds between posts. Please try again in 11 seconds.
Reply
#5

I'm really new at coding and english is not my first language, so its kinda hard to understand PAWNO

PS: YOUR STUNT SERVER IS FREAKING AWESOME
Reply
#6

and

Код:
SetPlayerPos(playerid,X,Y,Z);
is not the problem, it still crashes
Reply
#7

Quote:
Originally Posted by marinov
Посмотреть сообщение
and

Код:
SetPlayerPos(playerid,X,Y,Z);
is not the problem, it still crashes
You don't even know what you're talking about, so you can't say something is or isn't the problem. Why don't you read your code before it's given to you? It just shows how much of a newb you are.
Reply
#8

Why do you even need this when playerid is available...
Код:
new id = strval(cmdtext[11]); //this is the id of the player whos team your trying to change
pawn Код:
if(strcmp(cmdtext,"/putzombie", true, 10) == 0)
    {
        team[playerid] = 2;
        infected[playerid] = 0;
        SetPlayerPos(playerid,X,Y,Z);
        SetPlayerColor(playerid,ZRED);
        SetPlayerTeam(playerid, 2);
        SetPlayerHealth(playerid, 200);
        SetPlayerSkin(playerid,162);
        GameTextForPlayer(playerid,"~r~Zombie: ~b~/hide",10000,1);
        return 1;
    }
Reply
#9

Quote:
Originally Posted by RealCop228
Посмотреть сообщение
You don't even know what you're talking about, so you can't say something is or isn't the problem. Why don't you read your code before it's given to you? It just shows how much of a newb you are.
As I tried to tell him. Eesh, SAMP will never have enough noobs.
Reply
#10

Quote:
Originally Posted by [FU]Victious
Посмотреть сообщение
As I tried to tell him. Eesh, SAMP will never have enough noobs.
If your not contributing help, then dont post.


@marinov: Read the wiki about sscanf. It's not that hard
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)