Jump to content
  • 0

4 Erori


alinutz_boy32

Question

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 indentation

D:\Romania Play Stunt\gamemodes\RPS.pwn(7234) : error 054: unmatched closing brace ("}")

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

4 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

5 answers to this question

Recommended Posts

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

7232 :  [pawn]return SendClientMessageToAll(blue, string);[/pawn]

am pus alea si iauite ce imi apare

D:\Sa-MP\pawno\pawno\include\sscanf2.inc(220) : warning 219: local variable "string" shadows a variable at a preceding level

D:\Sa-MP\pawno\pawno\include\sscanf2.inc(220) : warning 219: local variable "string" shadows a variable at a preceding level

D:\Sa-MP\pawno\pawno\include\sscanf2.inc(280) : warning 219: local variable "string" shadows a variable at a preceding level

D:\Sa-MP\pawno\pawno\include\sscanf2.inc(280) : warning 219: local variable "string" shadows a variable at a preceding level

D:\Romania Play Stunt\gamemodes\RPS.pwn(1253) : warning 219: local variable "string" shadows a variable at a preceding level

D:\Romania Play Stunt\gamemodes\RPS.pwn(1525) : warning 219: local variable "string" shadows a variable at a preceding level

D:\Romania Play Stunt\gamemodes\RPS.pwn(1540) : warning 219: local variable "string" shadows a variable at a preceding level

D:\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 zero

D:\Romania Play Stunt\gamemodes\RPS.pwn(6634) : error 010: invalid function or declaration

D:\Romania Play Stunt\gamemodes\RPS.pwn(6634 -- 6636) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

4 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

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;

}

7bdea99b11.png

rimmon curv.

Link to comment
Share on other sites

ca e tare greu CITESTE CE SCRIE INVATA ENGLEZA

dute la

CMD:setallcash

cu 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

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.