Clan Tag Locking Factions
#1

Long story short, i'll let the script do the talking, what am i doing wrong? :S

Код:
C:\Users\Jay\Desktop\GangWarsV.0.1.B\gamemodes\LSTW2Uv2.pwn(1159) : error 029: invalid expression, assumed zero
C:\Users\Jay\Desktop\GangWarsV.0.1.B\gamemodes\LSTW2Uv2.pwn(2529) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
Код:
			new playername[MAX_PLAYER_NAME];
			GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
			{
			    if(GetPlayerTeam(playerid) == TEAM_HOODLUMS) {
					if(GetPlayerTeam(playerid) == TEAM_HOODLUMS) {
					    SendClientMessage(playerid, HOODLUMS_COLOR, "You have chosen your Owl Valistics Official Clan");
		  	   			SetPlayerPos(playerid,gHoodlumsSP[rand][0],gHoodlumsSP[rand][1],gHoodlumsSP[rand][2]);
			    	 	SetPlayerFacingAngle(playerid,gHoodlumsSP[rand][3]);
					}
				}
			}
			else
			{
				/*if(GetPlayerTeam(playerid) == TEAM_HOODLUMS) {
				if(GetPlayerSkin(playerid) == 115)
				SendClientMessage(playerid, HOODLUMS_COLOR, "You have chosen your clan's skin."); }
				if(GetPlayerTeam(playerid) == TEAM_HOODLUMS) {
				if(GetPlayerSkin(playerid) == 141)
				SendClientMessage(playerid, HOODLUMS_COLOR, "You have chosen your Owl Balistics official clan");
				SetPlayerHealth(playerid, 0); // he will keep dying until he changes skin. */
				ForceClassSelection(playerid);
	   		/*	SetPlayerPos(playerid,gHoodlumsSP[rand][0],gHoodlumsSP[rand][1],gHoodlumsSP[rand][2]);
	    	 	SetPlayerFacingAngle(playerid,gHoodlumsSP[rand][3]); */
			}
       }
Reply
#2

Add:

pawn Код:
forward OnPlayerPrivmsg( here add the parameters);
Parameters mustbe "playerid"

Give me the (1159) line to verify that.
Reply
#3

That's line 1159, so i have no clue what's up xD

Код:
			else
Reply
#4

pawn Код:
public OnPlayerRequestSpawn(playerid)
{
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    switch(GetPlayerTeam(playerid))
    {
        case TEAM_HOODLUMS:
        {
            if(strfind(name, "[ABK]", false) == -1) {
                return 0;
            }
        }
    }
    return 1;
}
https://sampwiki.blast.hk/wiki/Strfind
Reply
#5

I'm still having issues with it :S

I know it's crazy to ask, but would one of you be able to go on Teamviewer and help me? Cuz i gotta finish this team xD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)