SA-MP Forums Archive
Another one - 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: Another one (/showthread.php?tid=86149)



Another one - Erkan - 12.07.2009

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


Re: Another one - Erkan - 12.07.2009

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


Re: Another one - Correlli - 12.07.2009

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;
}



Re: Another one - Erkan - 12.07.2009

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.


Re: Another one - Correlli - 12.07.2009

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


Re: Another one - Erkan - 12.07.2009

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


Re: Another one - Anarkien - 12.07.2009

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.