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



brackets - dafel2 - 06.08.2009

Код:
  switch(PlayerInfo[playerid][team])
  {
	 case TEAM_TEACHER:
  {
   new Nick[MAX_PLAYER_NAME];
   if(strfind(Nick, "revenngeR", true) != -1 || strfind(Nick, "null", true) != -1)
  {

   SendClientMessage(playerid, COLOR_LIGHTBLUE, "You Have spawned as a teacher. Start Teaching students!");
	 PlayerPlaySound(playerid, 1069, 0.0, 0.0, 0.0);
   SetPlayerColor(playerid,COLOR_YELLOW);

	}
else
  {
   SendClientMessage(playerid, COLOR_LIGHTBLUE, "You Have spawned as a student.");
	 PlayerPlaySound(playerid, 1069, 0.0, 0.0, 0.0);
   SetPlayerColor(playerid,COLOR_RED);
  }
  return 1;
  }
	 case TEAM_STUDENT:
  {
   SendClientMessage(playerid, COLOR_LIGHTBLUE, "");
   SendClientMessage(playerid, COLOR_LIGHTBLUE, "You Have spawned as a student.");
	 PlayerPlaySound(playerid, 1069, 0.0, 0.0, 0.0);
   SetPlayerColor(playerid,COLOR_RED);
   return 1;
	}
 }
	return 1;
}
The problem is When i have nickname revenngeR i spawn as student! can someone help me?!


Re: brackets - dafel2 - 06.08.2009

BUMP


Re: brackets - JaTochNietDan - 06.08.2009

You forgot GetPlayerName(playerid,Nick,sizeof(Nick));