13.11.2012, 20:35
PHP код:
KARP.pwn(3905) : warning 213: tag mismatch
KARP.pwn(3927) : error 009: invalid array size (negative, zero or out of bounds)
KARP.pwn(3927) : error 036: empty statement
KARP.pwn(3928) : error 017: undefined symbol "GetPlayer2DZone"
KARP.pwn(3928) : warning 202: number of arguments does not match definition
KARP.pwn(3928) : error 001: expected token: ",", but found ";"
KARP.pwn(3933) : warning 202: number of arguments does not match definition
KARP.pwn(3933) : warning 202: number of arguments does not match definition
KARP.pwn(3933) : error 017: undefined symbol "location"
KARP.pwn(3934) : error 017: undefined symbol "SendRadioMessage"
KARP.pwn(3935) : error 017: undefined symbol "SendRadioMessage"
KARP.pwn(3936) : error 017: undefined symbol "SendRadioMessage"
KARP.pwn(3937) : error 017: undefined symbol "SendRadioMessage"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB 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);