13.04.2010, 20:48
hey guys, im trying to do something witch gives errors, when a player connects, the system checks if he got the tag [LSPD], if he does, he will be set in the Police team... but i get errors
AND i think this is wrongly scripte, could someone help me please?
Код:
public OnPlayerConnect(playerid) { new pName[MAX_PLAYER_NAME]; GetPlayerName(playerid, pName, sizeof(pName)); if(GetPlayerName(playerid, pName, sizeof(pName)) == "[LSPD]%s", pName) { SetPlayerTeam(playerid, 1); } return 1; }