19.03.2013, 18:28
Hello,
I have just finished making a /call 911 command, but I get these errors:
I think it has something to do with this:
And if I change CMD:call 911 to CMD:call it gives no errors, but then how am I supposed to do /call 911?
Heres my whole command,
Please help! Thanks
I have just finished making a /call 911 command, but I get these errors:
Код:
C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\LOSSAN~1\GAMEMO~1\MySQL.pwn(810) : warning 219: local variable "pName" shadows a variable at a preceding level C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\LOSSAN~1\GAMEMO~1\MySQL.pwn(811) : warning 219: local variable "str" shadows a variable at a preceding level C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\LOSSAN~1\GAMEMO~1\MySQL.pwn(1102) : warning 219: local variable "str" shadows a variable at a preceding level C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\LOSSAN~1\GAMEMO~1\MySQL.pwn(1108) : warning 219: local variable "pName" shadows a variable at a preceding level C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\LOSSAN~1\GAMEMO~1\MySQL.pwn(1445) : warning 219: local variable "str" shadows a variable at a preceding level C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\LOSSAN~1\GAMEMO~1\MySQL.pwn(1563) : warning 219: local variable "str" shadows a variable at a preceding level C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\LOSSAN~1\GAMEMO~1\MySQL.pwn(1563) : warning 219: local variable "pName" shadows a variable at a preceding level C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\LOSSAN~1\GAMEMO~1\MySQL.pwn(1636) : warning 219: local variable "str" shadows a variable at a preceding level C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\LOSSAN~1\GAMEMO~1\MySQL.pwn(1642) : warning 219: local variable "str" shadows a variable at a preceding level C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\LOSSAN~1\GAMEMO~1\MySQL.pwn(1690) : warning 219: local variable "str" shadows a variable at a preceding level C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\LOSSAN~1\GAMEMO~1\MySQL.pwn(1705) : warning 219: local variable "str" shadows a variable at a preceding level C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\LOSSAN~1\GAMEMO~1\MySQL.pwn(1741) : warning 219: local variable "str" shadows a variable at a preceding level C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\LOSSAN~1\GAMEMO~1\MySQL.pwn(1778) : warning 219: local variable "pName" shadows a variable at a preceding level C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\LOSSAN~1\GAMEMO~1\MySQL.pwn(1835) : warning 219: local variable "pName" shadows a variable at a preceding level C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\LOSSAN~1\GAMEMO~1\MySQL.pwn(1873) : warning 219: local variable "str" shadows a variable at a preceding level C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\LOSSAN~1\GAMEMO~1\MySQL.pwn(1882) : warning 219: local variable "str" shadows a variable at a preceding level C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\LOSSAN~1\GAMEMO~1\MySQL.pwn(1943) : warning 219: local variable "str" shadows a variable at a preceding level C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\LOSSAN~1\GAMEMO~1\MySQL.pwn(1943) : warning 219: local variable "pName" shadows a variable at a preceding level C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\LOSSAN~1\GAMEMO~1\MySQL.pwn(2003) : warning 219: local variable "str" shadows a variable at a preceding level C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\LOSSAN~1\GAMEMO~1\MySQL.pwn(2033) : warning 219: local variable "str" shadows a variable at a preceding level C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\LOSSAN~1\GAMEMO~1\MySQL.pwn(2058) : warning 219: local variable "str" shadows a variable at a preceding level C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\LOSSAN~1\GAMEMO~1\MySQL.pwn(2063) : warning 219: local variable "pName" shadows a variable at a preceding level C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\LOSSAN~1\GAMEMO~1\MySQL.pwn(2177) : warning 219: local variable "str" shadows a variable at a preceding level C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\LOSSAN~1\GAMEMO~1\MySQL.pwn(2194) : error 001: expected token: "(", but found "-integer value-" C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\LOSSAN~1\GAMEMO~1\MySQL.pwn(2194) : error 001: expected token: ";", but found "(" C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\LOSSAN~1\GAMEMO~1\MySQL.pwn(2199) : error 010: invalid function or declaration C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\LOSSAN~1\GAMEMO~1\MySQL.pwn(2200) : error 010: invalid function or declaration C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\LOSSAN~1\GAMEMO~1\MySQL.pwn(2204) : error 021: symbol already defined: "GetPlayerName" C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\LOSSAN~1\GAMEMO~1\MySQL.pwn(2207) : error 010: invalid function or declaration C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\LOSSAN~1\GAMEMO~1\MySQL.pwn(2209) : warning 203: symbol is never used: "message" C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\LOSSAN~1\GAMEMO~1\MySQL.pwn(2209) : warning 203: symbol is never used: "pName" C:\DOCUME~1\DANNY~1.YOU\MYDOCU~1\LOSSAN~1\GAMEMO~1\MySQL.pwn(2209) : warning 203: symbol is never used: "str" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Errors.
pawn Код:
CMD:call 911(playerid, params[])
And if I change CMD:call 911 to CMD:call it gives no errors, but then how am I supposed to do /call 911?
Heres my whole command,
pawn Код:
CMD:call 911(playerid, params[])
{
new
message[128];
if(sscanf(params, "s", message))
return SendUsageError( playerid, "/call 911 [Message]" );
new
str[128],
pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(str, sizeof(pName), "[911] %s has called 911! Message: %s", pName, message);
SendClientMessage(playerid, COP_MESSAGE, str);
return 1;
}