Another one
#1

Is this Script ok?

Код:
	if(!strcmp(cmd,"/tonline",true))
		{
 		if (gTeam[playerid] == TEAM_COPS)
		GetPlayerName(playerid, name, sizeof(name));
		format(string, sizeof(string), "Taxi Driver s% is now onduty need Taxi? use /912. ", name);
		SendClientMessageToAll(COLOR_YELLOW, string);
		}
 		else return SendClientMessage(playerid,COLOR_YELLOW,"SERVER: You are not a Taxi Driver !");
  		}
		return 1;
	}





It's at the end of OnplayerCommandtext
Reply
#2

I made G team cops, because i am testing it.
Reply
#3

pawn Код:
if(!strcmp(cmd,"/tonline",true))
{
if(gTeam[playerid] == TEAM_COPS)
{
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "Taxi Driver s% is now onduty need Taxi? use /912. ", name);
SendClientMessageToAll(COLOR_YELLOW, string);
}
else return SendClientMessage(playerid,COLOR_YELLOW,"SERVER: You are not a Taxi Driver !");
return 1;
}
Reply
#4

Quote:
Originally Posted by Don Correlli
pawn Код:
if(!strcmp(cmd,"/tonline",true))
{
if(gTeam[playerid] == TEAM_COPS)
{
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "Taxi Driver s% is now onduty need Taxi? use /912. ", name);
SendClientMessageToAll(COLOR_YELLOW, string);
}
else return SendClientMessage(playerid,COLOR_YELLOW,"SERVER: You are not a Taxi Driver !");
return 1;
}
Wow, i got now about 36 Errors, this command is at the end of the Onplayercommandtext.
Reply
#5

It would be great if you tell me which errors exactly.
Reply
#6

There is not a error, the command is not working it says Unkown Command.
Reply
#7

Quote:
Originally Posted by [LSB
Erkan ]
There is not a error, the command is not working it says Unkown Command.
Quote:
Originally Posted by [LSB
Erkan ]
There is not a error, the command is not working it says Unkown Command.
Hmm.. That's weird .
Which I could help though.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)