PDA

View Full Version : Help


Filbert
11/01/2018, 05:27 PM
new Text3D:label[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
if(PlayerInfo[playerid][Level] == 0 || PlayerInfo[playerid][Hide] == 1) return 0;
if(PlayerInfo[playerid][Level] == 1 && PlayerInfo[playerid][Hide] == 0)
(
Update3DTextLabelText(label[playerid], newblue1, "[ Basic Moderator ]");
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.6);
}
if(PlayerInfo[playerid][Level] == 2 && PlayerInfo[playerid][Hide] == 0)
(
Update3DTextLabelText(label[playerid], COLOR_GREEN, "[ Moderator ]");
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.6);
}
if(PlayerInfo[playerid][Level] == 3 && PlayerInfo[playerid][Hide] == 0)
(
Update3DTextLabelText(label[playerid], COLOR_YELLOW, "[ Master Moderator ]");
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.6);
}
if(PlayerInfo[playerid][Level] == 4 && PlayerInfo[playerid][Hide] == 0)
(
Update3DTextLabelText(label[playerid], COLOR_ORANGE, "[ Administrator ]");
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.6);
}
if(PlayerInfo[playerid][Level] == 5 && PlayerInfo[playerid][Hide] == 0)
(
Update3DTextLabelText(label[playerid], blue1, "[ Master Admin ]");
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.6);
}
if(PlayerInfo[playerid][Level] == 6 && PlayerInfo[playerid][Hide] == 0)
(
Update3DTextLabelText(label[playerid], COLOR_Silver, "[ Elite Admin ]");
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.6);
}
if(PlayerInfo[playerid][Level] == 7 && PlayerInfo[playerid][Hide] == 0)
(
Update3DTextLabelText(label[playerid], LIGHTBLUE2, "[ General ]");
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.6);
}
if(PlayerInfo[playerid][Level] == 8 && PlayerInfo[playerid][Hide] == 0)
(
Update3DTextLabelText(label[playerid], Color_Major_Elite1, "[ Director ]");
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.6);
}
if(IsPlayerAdmin(playerid) && PlayerInfo[playerid][Hide] == 0)
(
Update3DTextLabelText(label[playerid], red, "[ RCON ADMIN ]");
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.6);
}

D:\Data\GTA\NZTDM\Pawno\include\dutils.inc(28) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Pawno\include\dutils.inc(132) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Pawno\include\dutils.inc(172) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Pawno\include\dutils.inc(280) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Pawno\include\dutils.inc(298) : warning 219: local variable "tmp" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Pawno\include\dutils.inc(337) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Pawno\include\dutils.inc(399) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Pawno\include\dutils.inc(463) : warning 219: local variable "tmp" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Pawno\include\dini.inc(204) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Pawno\include\Ldudb.inc(48) : warning 219: local variable "tmp" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Pawno\include\Ldudb.inc(99) : warning 219: local variable "tmp" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Pawno\include\DoubleOFiles2.inc( 154) : warning 219: local variable "file" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Pawno\include\DoubleOFiles2.inc( 163) : warning 219: local variable "file" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Pawno\include\DoubleOFiles2.inc( 214) : warning 219: local variable "file" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Pawno\include\DoubleOFiles2.inc( 226) : warning 219: local variable "file" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Pawno\include\DoubleOFiles2.inc( 247) : warning 219: local variable "file" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Pawno\include\DoubleOFiles2.inc( 391) : warning 219: local variable "file" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Pawno\include\DoubleOFiles2.inc( 485) : warning 219: local variable "file" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Pawno\include\DoubleOFiles2.inc( 492) : warning 219: local variable "file" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Pawno\include\DoubleOFiles2.inc( 509) : warning 219: local variable "file" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Pawno\include\DoubleOFiles2.inc( 565) : warning 219: local variable "file" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Pawno\include\DoubleOFiles2.inc( 613) : warning 219: local variable "file" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Pawno\include\DoubleOFiles2.inc( 627) : warning 219: local variable "file" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Pawno\include\DoubleOFiles2.inc( 634) : warning 219: local variable "file" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Pawno\include\DoubleOFiles2.inc( 641) : warning 219: local variable "file" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Pawno\include\DoubleOFiles2.inc( 641) : warning 219: local variable "file" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Pawno\include\DoubleOFiles2.inc( 655) : warning 219: local variable "file" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Pawno\include\DoubleOFiles2.inc( 655) : warning 219: local variable "file" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Pawno\include\DoubleOFiles2.inc( 669) : warning 219: local variable "file" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Pawno\include\DoubleOFiles2.inc( 676) : warning 219: local variable "file" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Pawno\include\DoubleOFiles2.inc( 683) : warning 219: local variable "file" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Pawno\include\DoubleOFiles2.inc( 690) : warning 219: local variable "file" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Pawno\include\DoubleOFiles2.inc( 795) : warning 219: local variable "file" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Pawno\include\DoubleOFiles2.inc( 900) : warning 219: local variable "file" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Pawno\include\DoubleOFiles2.inc( 970) : warning 219: local variable "file" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Pawno\include\DoubleOFiles2.inc( 985) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Pawno\include\DoubleOFiles2.inc( 1015) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Pawno\include\DoubleOFiles2.inc( 1038) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Pawno\include\DoubleOFiles2.inc( 1098) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(2235) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(2289) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(2399) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(2421) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(2429) : error 035: argument type mismatch (argument 1)
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(2443) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(2445) : error 035: argument type mismatch (argument 1)
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(2455) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(2504) : warning 219: local variable "file" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(3161) : warning 217: loose indentation
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(5005) : warning 217: loose indentation
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(11887) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(11893) : error 035: argument type mismatch (argument 1)
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(11899) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(11907) : error 035: argument type mismatch (argument 1)
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(12857) : warning 219: local variable "IP" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(13011) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(13040) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(13048) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(13077) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(13085) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(13126) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(13273) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(13450 -- 13451) : error 001: expected token: ")", but found ";"
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(13452) : warning 217: loose indentation
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(13453) : warning 209: function "Iter_OnPlayerConnect" should return a value
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(13454) : error 010: invalid function or declaration
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(13459) : error 010: invalid function or declaration
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(13464) : error 010: invalid function or declaration
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(13469) : error 010: invalid function or declaration
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(13474) : error 010: invalid function or declaration
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(13479) : error 010: invalid function or declaration
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(13484) : error 010: invalid function or declaration
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(13489) : error 010: invalid function or declaration
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(13522) : error 010: invalid function or declaration
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(13542) : error 010: invalid function or declaration
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(13550) : error 010: invalid function or declaration
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(13553) : error 010: invalid function or declaration
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(13558) : error 021: symbol already defined: "GetPlayerIp"
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(13559) : error 010: invalid function or declaration
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(13564) : error 021: symbol already defined: "print"
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(13566) : error 010: invalid function or declaration
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(13571) : error 021: symbol already defined: "print"
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(13572) : error 010: invalid function or declaration
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(13574) : error 010: invalid function or declaration
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(13577) : error 021: symbol already defined: "GetPlayerIp"
D:\Data\GTA\NZTDM\Gamemodes\NZTDM-1.pwn(13584) : error 010: invalid function or declaration

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.

RogueDrifter
11/01/2018, 05:44 PM
Oh yeah that's it, that's exactly how you get help, you post a code that isn't related to the errors and a spammed log of the errors reported with 0 explanations and a title that says "Help". Send the lines that contain the errors and use your hands if you won't put effort into it why would anyone do?
Edit: :picard:

aoky
11/01/2018, 05:56 PM
You are using ( instead of {


new Text3D:label[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
if(PlayerInfo[playerid][Level] == 0 || PlayerInfo[playerid][Hide] == 1) return 0;
if(PlayerInfo[playerid][Level] == 1 && PlayerInfo[playerid][Hide] == 0)
{
Update3DTextLabelText(label[playerid], newblue1, "[ Basic Moderator ]");
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.6);
}
if(PlayerInfo[playerid][Level] == 2 && PlayerInfo[playerid][Hide] == 0)
{
Update3DTextLabelText(label[playerid], COLOR_GREEN, "[ Moderator ]");
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.6);
}
if(PlayerInfo[playerid][Level] == 3 && PlayerInfo[playerid][Hide] == 0)
{
Update3DTextLabelText(label[playerid], COLOR_YELLOW, "[ Master Moderator ]");
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.6);
}
if(PlayerInfo[playerid][Level] == 4 && PlayerInfo[playerid][Hide] == 0)
{
Update3DTextLabelText(label[playerid], COLOR_ORANGE, "[ Administrator ]");
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.6);
}
if(PlayerInfo[playerid][Level] == 5 && PlayerInfo[playerid][Hide] == 0)
{
Update3DTextLabelText(label[playerid], blue1, "[ Master Admin ]");
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.6);
}
if(PlayerInfo[playerid][Level] == 6 && PlayerInfo[playerid][Hide] == 0)
{
Update3DTextLabelText(label[playerid], COLOR_Silver, "[ Elite Admin ]");
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.6);
}
if(PlayerInfo[playerid][Level] == 7 && PlayerInfo[playerid][Hide] == 0)
{
Update3DTextLabelText(label[playerid], LIGHTBLUE2, "[ General ]");
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.6);
}
if(PlayerInfo[playerid][Level] == 8 && PlayerInfo[playerid][Hide] == 0)
{
Update3DTextLabelText(label[playerid], Color_Major_Elite1, "[ Director ]");
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.6);
}
if(IsPlayerAdmin(playerid) && PlayerInfo[playerid][Hide] == 0)
{
Update3DTextLabelText(label[playerid], red, "[ RCON ADMIN ]");
Attach3DTextLabelToPlayer(label[playerid], playerid, 0.0, 0.0, 0.6);
}

Sithis
12/01/2018, 08:42 AM
A script that has Master Moderator and Elite Admin as ranks can't possibly be taken serious.