Help fast, Don't ignore this please (+REP for helping)
#1

hi i got this errors today and i can't fix them, So help me please
Код:
C:\Users\infogenie\Desktop\Addictive Trainers 2.5.4\filterscripts\Untitled.pwn(303) : warning 203: symbol is never used: "PickedClass"
C:\Users\infogenie\Desktop\Addictive Trainers 2.5.4\filterscripts\Untitled.pwn(303) : warning 203: symbol is never used: "gPlayerClass"
C:\Users\infogenie\Desktop\Addictive Trainers 2.5.4\filterscripts\Untitled.pwn(303) : warning 203: symbol is never used: "gTeam"
i will show you the line :
Код:
CMD:snipertdm(playerid, params[])
{
   SetPlayerHealth(playerid, 99999.0);
    ResetPlayerWeapons(playerid);
	SendClientMessage(playerid, COLOR_AQUA, "You have anti-spawn kill protection for 5 seconds.");
	SetTimerEx("EndAntiSpawnKill", 5000, false, "i", playerid);
	SetPlayerVirtualWorld(playerid, 0);
	switch( GetPlayerTeam( playerid ) )
    {
        case TEAM_FARMERS:
        {
            SendClientMessage( playerid, COLOR_GREEN, "You are now playing in the Farmers Team." );

			label7[playerid] = Create3DTextLabel("FARMERS TEAM PLAYER",TEAM_FARMERS, 30.0, 40.0, 50.0, 40.0, 0);
            Attach3DTextLabelToPlayer(label7[playerid], playerid, 0.0, 0.0, 0.4);
 			}

        case TEAM_ALIENS:
        {
              SendClientMessage( playerid, COLOR_AQUA, "You are now playing in the Aliens Team." );
              label7[playerid] = Create3DTextLabel("ALIENS TEAM PLAYER",TEAM_ALIENS, 30.0, 40.0, 50.0, 40.0, 0);
              Attach3DTextLabelToPlayer(label7[playerid], playerid, 0.0, 0.0, 0.4);

		}
		
    }
	return true;
}
the line error is the final bracket. under "return true;"
HELP please
Reply
#2

Wong code I am guessing.Anyways thats just a warning not an error, but it means you defined them but never used them.Just delete them.
Reply
#3

@KeithCooper i agree
Reply
#4

ok guys listen. i want team death match CMD.
When you type it you find your self in TDM but.
i need classes. i mean when someone the CMD. he find a dialog will show him two teams and he must select then teleported.
I don't know how but can someone of you guys show me simple example of it. ?
don't be lazy please
because i tried and checked and no results
Reply
#5

Try searching it on this forum.I am surr there is an exaple of what you're looking for.
Reply
#6

i didn't find here.
Help me please. comeon man.
Reply
#7

https://sampwiki.blast.hk/wiki/ShowPlayerDialog

Use Switch or if statements, Make classes for each opposing team

Use your brain.
Dont be lazy please.
Reply
#8

Quote:
Originally Posted by MarkNelson
Посмотреть сообщение
i didn't find here.
Help me please. comeon man.
Can you explain a bit better? I cannot understand you in what you need.
Reply
#9

Okay listen.
i want make TDM Command.
When someone type it, he will find a dialog and in this dialog there are two letters. Shows two teams.
If you selected a team from that dialog you will be teleported to the TDM map.
Reply
#10

dont worry if you destroy gTeam or other you will have it in game
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)