SA-MP Forums Archive
Help with Scripting - 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)
+--- Thread: Help with Scripting (/showthread.php?tid=392339)



Help with Scripting - KeenanRitchie - 13.11.2012

PHP код:
KARP.pwn(3905) : warning 213tag mismatch
KARP
.pwn(3927) : error 009invalid array size (negativezero or out of bounds)
KARP.pwn(3927) : error 036: empty statement
KARP
.pwn(3928) : error 017undefined symbol "GetPlayer2DZone"
KARP.pwn(3928) : warning 202number of arguments does not match definition
KARP
.pwn(3928) : error 001expected token","but found ";"
KARP.pwn(3933) : warning 202number of arguments does not match definition
KARP
.pwn(3933) : warning 202number of arguments does not match definition
KARP
.pwn(3933) : error 017undefined symbol "location"
KARP.pwn(3934) : error 017undefined symbol "SendRadioMessage"
KARP.pwn(3935) : error 017undefined symbol "SendRadioMessage"
KARP.pwn(3936) : error 017undefined symbol "SendRadioMessage"
KARP.pwn(3937) : error 017undefined symbol "SendRadioMessage"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase 
Код:
  	new location[MAX_ZONE_NAME];
	GetPlayer2DZone(playerid, location, MAX_ZONE_NAME);
	new Float:x, Float:y, Float:z, Float:angle;
  	GetPlayerFacingAngle(playerid, angle);
  	GetPlayerPos(playerid, x, y, z);
	CreateFlare(x, y, z, angle);
  	format(string, sizeof(string), "HQ: %s has placed a flare at %s", GetPlayerName(playerid), location);
	SendRadioMessage(1, TEAM_BLUE_COLOR, string);
	SendRadioMessage(2, TEAM_BLUE_COLOR, string);
	SendRadioMessage(3, TEAM_BLUE_COLOR, string);
	SendRadioMessage(5, TEAM_BLUE_COLOR, string);
Reply ASAP


Re: Help with Scripting - tyler12 - 13.11.2012

Have you included 'a_zones'?


Re: Help with Scripting - KeenanRitchie - 13.11.2012

No i have the include il have to find it Im such a noob


Re: Help with Scripting - KeenanRitchie - 13.11.2012

Im Still Getting These Errors

Код:
KARP.pwn(19) : error 038: extra characters on line
KARP.pwn(3906) : warning 213: tag mismatch
KARP.pwn(3934) : warning 202: number of arguments does not match definition
KARP.pwn(3934) : warning 202: number of arguments does not match definition
KARP.pwn(3935) : error 017: undefined symbol "SendRadioMessage"
KARP.pwn(3936) : error 017: undefined symbol "SendRadioMessage"
KARP.pwn(3937) : error 017: undefined symbol "SendRadioMessage"
KARP.pwn(3938) : error 017: undefined symbol "SendRadioMessage"



Re: Help with Scripting - NumbSkull - 13.11.2012

do you have this in the script?
pawn Код:
public SendRadioMessage(member, color, string[])
{
    foreach(Player, i)
    {
        if(PlayerInfo[i][pMember] == member)
        {
            SendClientMessageEx(i, color, string);
        }
    }
}



Re: Help with Scripting - KeenanRitchie - 13.11.2012

Thank you guys i love you man <3 you have solved my problem