22.08.2011, 22:16
Erros:
Toda a Public:
Espero Que Me Ajudem Mais Um Vez Ai Galera!
Код:
D:\Usuarios\Desktop\HunterServer2011\gamemodes\HSGM.pwn(189) : warning 219: local variable "string" shadows a variable at a preceding level D:\Usuarios\Desktop\HunterServer2011\gamemodes\HSGM.pwn(2910) : warning 219: local variable "string" shadows a variable at a preceding level D:\Usuarios\Desktop\HunterServer2011\gamemodes\HSGM.pwn(2938) : error 017: undefined symbol "tmp" D:\Usuarios\Desktop\HunterServer2011\gamemodes\HSGM.pwn(2942) : warning 217: loose indentation D:\Usuarios\Desktop\HunterServer2011\gamemodes\HSGM.pwn(2944) : error 021: symbol already defined: "SetPlayerChatBubble" D:\Usuarios\Desktop\HunterServer2011\gamemodes\HSGM.pwn(2946) : error 021: symbol already defined: "format" D:\Usuarios\Desktop\HunterServer2011\gamemodes\HSGM.pwn(2949) : error 010: invalid function or declaration D:\Usuarios\Desktop\HunterServer2011\gamemodes\HSGM.pwn(2954) : warning 219: local variable "string" shadows a variable at a preceding level D:\Usuarios\Desktop\HunterServer2011\gamemodes\HSGM.pwn(3157) : warning 219: local variable "string" shadows a variable at a preceding level D:\Usuarios\Desktop\HunterServer2011\gamemodes\HSGM.pwn(3184) : warning 203: symbol is never used: "string" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
Код:
public OnPlayerText(playerid, text[]) { if(text[0] == ';') { new Float:Pos[3]; GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]); for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerInRangeOfPoint(i, 9.0, Pos[0], Pos[1], Pos[2])) { SendClientMessage(i, 0xE31919FF, tmp); } } } return 1; } SetPlayerChatBubble(playerid, text, COLOR_WHITE, 80.0, 10000); new string[256]; format(string,sizeof(string),"[ID:%d]:%s",playerid,text); SendPlayerMessageToAll(playerid,string); return 0; }