Kevlar help.
#1

Hey,
I need some help with making a new strcmp on Pawno.

Код HTML:
if(Strcmp(cmd, "/kevlar", true) == 0)
	{
		if(IsPlayerConnected(playerid))
		{
		    GetPlayerName(playerid, sendername, sizeof(sendername));
		    GiveNameSpcae(sendername);
		    if(PlayerInfo[playerid][pMaskUse] == 1) {format(sendername, sizeof(sendername), "Stranger_%d", RandMask[playerid]); }
		    if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 14)
		    {
		        if (PlayerToPoint(3, playerid,255.3,77.4,1003.6) || PlayerToPoint(3,playerid,233.0675,123.5211,1003.2188))
				{
				    if(OnDuty[playerid]==0)
					{
					    format(string, sizeof(string), "* Officer %s took an Kevlar vest from there locker.", sendername);
					    ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
					    SetPlayerAttachedObject(playerid, 1, 19142,  1, 0.1,  0.05, 0.0,  0.0,   0.0,   0.0);
					    }
				else
				{
					SendClientMessage(playerid, COLOR_GRAD2, " You are not in a locker room !");
					return 1;
				}
			}
I can't see what's wrong,when I try to compile it I get 26 errors with 017: undefined symbol,
If you guys could help me, I would appreciate it.
Reply
#2

Try this:
pawn Код:
if(strcmp(cmd, "/kevlar", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            GetPlayerName(playerid, sendername, sizeof(sendername));
            GiveNameSpcae(sendername);
            if(PlayerInfo[playerid][pMaskUse] == 1) {format(sendername, sizeof(sendername), "Stranger_%d", RandMask[playerid]); }
            if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pMember] == 14)
            {
                if (PlayerToPoint(3, playerid,255.3,77.4,1003.6) || PlayerToPoint(3,playerid,233.0675,123.5211,1003.2188))
                {
                    if(OnDuty[playerid]==0)
                    {
                        format(string, sizeof(string), "* Officer %s took an Kevlar vest from there locker.", sendername);
                        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        SetPlayerAttachedObject(playerid, 1, 19142,  1, 0.1,  0.05, 0.0,  0.0,   0.0,   0.0);
                    }
                }
                else
                {
                    SendClientMessage(playerid, COLOR_GRAD2, " You are not in a locker room !");
                    return 1;
                }
            }
        }
    }
Reply
#3

I still get this errors.

Quote:

C:\Program Files (x86)\Rockstar Games\LA-RP script\PS-RP.pwn(1861) : error 017: undefined symbol "IsNotAEngineCar"
C:\Program Files (x86)\Rockstar Games\LA-RP script\PS-RP.pwn(1869) : error 017: undefined symbol "SendDebugMessage"
C:\Program Files (x86)\Rockstar Games\LA-RP script\PS-RP.pwn(187 : error 017: undefined symbol "SendDebugMessage"
C:\Program Files (x86)\Rockstar Games\LA-RP script\PS-RP.pwn(1896) : error 017: undefined symbol "ApplyAnimationEx"
C:\Program Files (x86)\Rockstar Games\LA-RP script\PS-RP.pwn(1904) : error 017: undefined symbol "ApplyAnimationEx"
C:\Program Files (x86)\Rockstar Games\LA-RP script\PS-RP.pwn(190 : error 017: undefined symbol "IsACopCar"
C:\Program Files (x86)\Rockstar Games\LA-RP script\PS-RP.pwn(1912) : error 017: undefined symbol "ApplyAnimationEx"
C:\Program Files (x86)\Rockstar Games\LA-RP script\PS-RP.pwn(1920) : error 017: undefined symbol "ApplyAnimationEx"
C:\Program Files (x86)\Rockstar Games\LA-RP script\PS-RP.pwn(1923) : error 017: undefined symbol "IsAnFbiCar"
C:\Program Files (x86)\Rockstar Games\LA-RP script\PS-RP.pwn(1927) : error 017: undefined symbol "ApplyAnimationEx"
C:\Program Files (x86)\Rockstar Games\LA-RP script\PS-RP.pwn(1935) : error 017: undefined symbol "ApplyAnimationEx"
C:\Program Files (x86)\Rockstar Games\LA-RP script\PS-RP.pwn(193 : error 017: undefined symbol "IsAGovCar"
C:\Program Files (x86)\Rockstar Games\LA-RP script\PS-RP.pwn(1942) : error 017: undefined symbol "ApplyAnimationEx"
C:\Program Files (x86)\Rockstar Games\LA-RP script\PS-RP.pwn(1950) : error 017: undefined symbol "ApplyAnimationEx"
C:\Program Files (x86)\Rockstar Games\LA-RP script\PS-RP.pwn(1953) : error 017: undefined symbol "IsAnAmbulance"
C:\Program Files (x86)\Rockstar Games\LA-RP script\PS-RP.pwn(1957) : error 017: undefined symbol "ApplyAnimationEx"
C:\Program Files (x86)\Rockstar Games\LA-RP script\PS-RP.pwn(1965) : error 017: undefined symbol "ApplyAnimationEx"
C:\Program Files (x86)\Rockstar Games\LA-RP script\PS-RP.pwn(196 : error 017: undefined symbol "IsASheriffCar"
C:\Program Files (x86)\Rockstar Games\LA-RP script\PS-RP.pwn(1972) : error 017: undefined symbol "ApplyAnimationEx"
C:\Program Files (x86)\Rockstar Games\LA-RP script\PS-RP.pwn(1980) : error 017: undefined symbol "ApplyAnimationEx"
C:\Program Files (x86)\Rockstar Games\LA-RP script\PS-RP.pwn(1983) : error 017: undefined symbol "IsAnOwnableCar"
C:\Program Files (x86)\Rockstar Games\LA-RP script\PS-RP.pwn(1987) : error 017: undefined symbol "ApplyAnimationEx"
C:\Program Files (x86)\Rockstar Games\LA-RP script\PS-RP.pwn(1995) : error 017: undefined symbol "ApplyAnimationEx"
C:\Program Files (x86)\Rockstar Games\LA-RP script\PS-RP.pwn(2246) : error 017: undefined symbol "ResetPlayerWeaponsEx"
C:\Program Files (x86)\Rockstar Games\LA-RP script\PS-RP.pwn(2271) : error 017: undefined symbol "ResetPlayerWeaponsEx"
C:\Program Files (x86)\Rockstar Games\LA-RP script\PS-RP.pwn(2282) : error 017: undefined symbol "NameIsRP"

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


26 Errors.

:S I hope that someone can help me to fix it.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)