06.06.2013, 09:21
I made a new CMD, and after that i got a bunch of errors. En i can't find whats wrong with it.
Without this it compiles fine.
But with... i get this
pawn Код:
CMD:dinvite
{
new targetid, string[128];
if(PlayerInfo[playerid][pDivLeader] == 0) return SendClientMessage(playerid, COLOR_RED, "ERROR: You are not authorized to use this command!");
if(sscanf(params, "u", targetid)) return SendClientMessage(playerid, COLOR_WHITE, "Usage: /dinvite [PlayerID]");
if(playerid == targetid) return SendClientMessage(playerid, COLOR_WHITE, "ERROR: You can't invite yourself.");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, COLOR_WHITE, "ERROR: This player is not in the server");
if(PlayerInfo[targetid][pMember] != PlayerInfo[playerid][pMember]) return SendClientMessage(playerid, COLOR_WHITE,"ERROR: This player is not in your faction");
if(PlayerInfo[targetid][pDiv] > 0) return SendClientMessage(playerid, COLOR_WHITE, "ERROR: That player is already in a division!");
Division[targetid] = PlayerInfo[playerid][pDiv];
DInvited[targetid] = 1;
DInviter[targetid] = playerid;
format(string, sizeof(string), " You have invited %s to join the %s division.", RPName(targetid), FDiv(playerid));
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), " %s has invited you to join the %s division. (/accept divsion)", RPName(targetid), FDiv(playerid));
SendClientMessage(targetid, COLOR_LIGHTBLUE, string);
return 1;
}
But with... i get this
pawn Код:
C:\Users\Julian\Desktop\VGRP\pawno\include\sscanf2.inc(305) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\pawno\include\sscanf2.inc(305) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\pawno\include\sscanf2.inc(365) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\pawno\include\sscanf2.inc(365) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\pawno\include\YSI\y_utils.inc(239) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\pawno\include\YSI\y_utils.inc(310) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\pawno\include\YSI\y_utils.inc(342) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\pawno\include\YSI\y_utils.inc(360) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(332) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(572) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(623) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(730) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(782) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(795) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(817) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(844) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(878) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(941) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(965) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(977) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(989) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1052) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1061) : warning 219: local variable "targetid" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1061) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1074) : warning 219: local variable "targetid" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1074) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1085) : warning 219: local variable "targetid" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1085) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1100) : warning 219: local variable "targetid" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1100) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1114) : warning 219: local variable "targetid" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1114) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1149) : warning 219: local variable "targetid" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1149) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1161) : warning 219: local variable "targetid" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1161) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1189) : warning 219: local variable "targetid" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1201) : warning 219: local variable "targetid" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1201) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1215) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1215) : warning 219: local variable "targetid" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1225) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1240) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1255) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1266) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1282) : warning 219: local variable "targetid" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1282) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1328) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1328) : warning 219: local variable "targetid" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1346) : warning 219: local variable "targetid" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1346) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1366) : warning 219: local variable "targetid" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1366) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1385) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1419) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1497) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1534) : warning 219: local variable "targetid" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1534) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1593) : error 010: invalid function or declaration
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1595) : error 010: invalid function or declaration
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1596) : error 010: invalid function or declaration
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1597) : error 010: invalid function or declaration
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1598) : error 010: invalid function or declaration
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1599) : error 010: invalid function or declaration
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1600) : error 010: invalid function or declaration
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1608) : error 010: invalid function or declaration
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1614) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1653) : warning 203: symbol is never used: "string"
C:\Users\Julian\Desktop\VGRP\gamemodes\TROLOLOL.pwn(1653) : warning 203: symbol is never used: "targetid"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
8 Errors.