alinutz_boy32 Posted December 11, 2013 Report Share Posted December 11, 2013 D:\Romania Play Stunt\gamemodes\RPS.pwn(7223) : error 017: undefined symbol "CMDMessageToAdmins"D:\Romania Play Stunt\gamemodes\RPS.pwn(7231) : error 017: undefined symbol "pName"D:\Romania Play Stunt\gamemodes\RPS.pwn(7232) : error 017: undefined symbol "blue"D:\Romania Play Stunt\gamemodes\RPS.pwn(7233) : warning 217: loose indentationD:\Romania Play Stunt\gamemodes\RPS.pwn(7234) : error 054: unmatched closing brace ("}")Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase4 Errors.[pawn]7223 CMDMessageToAdmins(playerid,"SETALLCASH");7231 format(string,sizeof(string),"Administrator \"%s\" has set all players cash to '$%d'", pName(playerid), var );7233 } else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");7234 }[/pawn] Link to comment Share on other sites More sharing options...
Jazz Posted December 12, 2013 Report Share Posted December 12, 2013 Pune asta undeva sus:[pawn]stock CMDMessageToAdmins(playerid,command[]){ if(ServerInfo[AdminCmdMsg] == 0) return 1; new string[128]; GetPlayerName(playerid,string,sizeof(string)); format(string,sizeof(string),"[ADMIN] %s has used the command %s",string,command); return MessageToAdmins(red,string);}[/pawn]Asta i gasesti un loc tot sus:[pawn]stock pName(playerid){ GetPlayerName(playerid, pname, sizeof(pname)); return pname;}[/pawn]Pune si linia 7232. Drift Moment In development Link to comment Share on other sites More sharing options...
alinutz_boy32 Posted December 12, 2013 Author Report Share Posted December 12, 2013 7232 : [pawn]return SendClientMessageToAll(blue, string);[/pawn]am pus alea si iauite ce imi apareD:\Sa-MP\pawno\pawno\include\sscanf2.inc(220) : warning 219: local variable "string" shadows a variable at a preceding levelD:\Sa-MP\pawno\pawno\include\sscanf2.inc(220) : warning 219: local variable "string" shadows a variable at a preceding levelD:\Sa-MP\pawno\pawno\include\sscanf2.inc(280) : warning 219: local variable "string" shadows a variable at a preceding levelD:\Sa-MP\pawno\pawno\include\sscanf2.inc(280) : warning 219: local variable "string" shadows a variable at a preceding levelD:\Romania Play Stunt\gamemodes\RPS.pwn(1253) : warning 219: local variable "string" shadows a variable at a preceding levelD:\Romania Play Stunt\gamemodes\RPS.pwn(1525) : warning 219: local variable "string" shadows a variable at a preceding levelD:\Romania Play Stunt\gamemodes\RPS.pwn(1540) : warning 219: local variable "string" shadows a variable at a preceding levelD:\Romania Play Stunt\gamemodes\RPS.pwn(6634) : error 001: expected token: ")", but found "&"D:\Romania Play Stunt\gamemodes\RPS.pwn(6634) : error 029: invalid expression, assumed zeroD:\Romania Play Stunt\gamemodes\RPS.pwn(6634) : error 010: invalid function or declarationD:\Romania Play Stunt\gamemodes\RPS.pwn(6634 -- 6636) : fatal error 107: too many error messages on one lineCompilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase4 Errors.6634: [pawn]stock CMDMessageToAdmins(playerid,command[])[/pawn]1540: [pawn] new string[256];[/pawn]1525: [pawn] new string[256];[/pawn]1253: [pawn] string [ 500 ] ,[/pawn] Link to comment Share on other sites More sharing options...
Massari Posted December 12, 2013 Report Share Posted December 12, 2013 stock CMDMessageToAdmins(playerid,command[]){ if(ServerInfo[AdminCmdMsg] == 0) return 1; new string2[128]; GetPlayerName(playerid,string2,sizeof(string2)); format(string,sizeof(string),"[ADMIN] %s has used the command %s",string2,command); return MessageToAdmins(red,string2);}stock pName(playerid){ new pname[24]; GetPlayerName(playerid, pname, sizeof(pname)); return pname;} rimmon curv. Link to comment Share on other sites More sharing options...
alinutz_boy32 Posted December 12, 2013 Author Report Share Posted December 12, 2013 acum imi da 1 warningD:\Romania Play Stunt\gamemodes\RPS.pwn(11529) : warning 203: symbol is never used: "CMD_setallcash"Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase1 Warning. 11529 e sfarsitul GM Link to comment Share on other sites More sharing options...
Ph0eniX Posted December 14, 2013 Report Share Posted December 14, 2013 ca e tare greu CITESTE CE SCRIE INVATA ENGLEZA dute laCMD:setallcashcu Search Text (binoclu ala) si sterge ... iti da warningu doar pt ca nu e folosit CMD:setallcash .. atata tot public OnPlayerConnect(playerid) { print("[ERROR] - Unable to establish a connection with the world..."); SendRconCommand("exit"); return 1; } Link to comment Share on other sites More sharing options...
Question
alinutz_boy32
[pawn]
7223 CMDMessageToAdmins(playerid,"SETALLCASH");
7231 format(string,sizeof(string),"Administrator \"%s\" has set all players cash to '$%d'", pName(playerid), var );
7233 } else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");
7234 }
[/pawn]
Link to comment
Share on other sites
5 answers to this question
Recommended Posts