24.09.2014, 08:57
coloquei esse sistema aqui no meu gm
Quote:
if(strcmp(cmd, "/fakechat", true) == 0) { if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdmin] >= 11) { new texto[256], id, str[128], Floatos[3]; tmp = strtok(cmdtext,idx); if(!strlen(tmp)) return SendClientMessage(playerid, -1,"USO: /fakechat [ID] [TEXTO]"); id = strval(tmp); texto = strtok(cmdtext, idx); format(str, sizeof(str),"Vocк forзou %d а falar:",id); SendClientMessage(playerid, -1, str); format(str, sizeof(str),"%s: %s",pname(id),texto); GetPlayerPos(playerid,pos[0], pos[1], pos[2]); for(new posi; posi < MAX_PLAYER_NAME; posi++) { if(IsPlayerInRangeOfPoint(posi, 20.0, pos[0], pos[1], pos[2])) { SendClientMessage(posi, Amarelo, str); } } OnPlayerText(id, texto); } else return SendClientMessage(playerid,COLOR_RED,"* Este Comando Nгo Existe No Brasil Real Life, Use /relatorio [texto] e Fale com os Admins Online."); return 1; } |
e deu esse erro aqui. alguem sabe como ajudar?
Quote:
C:\Users\Rodrigo\Desktop\oe\GM - Pagamento\gamemodes\teste.pwn(17862) : error 017: undefined symbol "pname" C:\Users\Rodrigo\Desktop\oe\GM - Pagamento\gamemodes\teste.pwn(20390) : warning 219: local variable "pname" shadows a variable at a preceding level C:\Users\Rodrigo\Desktop\oe\GM - Pagamento\gamemodes\teste.pwn(42989) : warning 219: local variable "pname" shadows a variable at a preceding level C:\Users\Rodrigo\Desktop\oe\GM - Pagamento\gamemodes\teste.pwn(50551) : warning 219: local variable "pname" shadows a variable at a preceding level C:\Users\Rodrigo\Desktop\oe\GM - Pagamento\gamemodes\teste.pwn(63162) : warning 219: local variable "pname" shadows a variable at a preceding level C:\Users\Rodrigo\Desktop\oe\GM - Pagamento\gamemodes\teste.pwn(7441 : warning 219: local variable "pname" shadows a variable at a preceding level Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |