Little Help?
#1

pawn Код:
C:\Documents and Settings\Janek\Desktop\[SK8] Fun Server\gamemodes\SK8.pwn(31) : warning 201: redefinition of constant/macro (symbol "dcmd(%1,%2,%3)")
C:\Documents and Settings\Janek\Desktop\[SK8] Fun Server\gamemodes\SK8.pwn(449) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
C:\Documents and Settings\Janek\Desktop\[SK8] Fun Server\gamemodes\SK8.pwn(637) : warning 219: local variable "X" shadows a variable at a preceding level
C:\Documents and Settings\Janek\Desktop\[SK8] Fun Server\gamemodes\SK8.pwn(637) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\Documents and Settings\Janek\Desktop\[SK8] Fun Server\gamemodes\SK8.pwn(637) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\Documents and Settings\Janek\Desktop\[SK8] Fun Server\gamemodes\SK8.pwn(652) : warning 219: local variable "X" shadows a variable at a preceding level
C:\Documents and Settings\Janek\Desktop\[SK8] Fun Server\gamemodes\SK8.pwn(652) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\Documents and Settings\Janek\Desktop\[SK8] Fun Server\gamemodes\SK8.pwn(652) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\Documents and Settings\Janek\Desktop\[SK8] Fun Server\gamemodes\SK8.pwn(679) : warning 219: local variable "X" shadows a variable at a preceding level
C:\Documents and Settings\Janek\Desktop\[SK8] Fun Server\gamemodes\SK8.pwn(679) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\Documents and Settings\Janek\Desktop\[SK8] Fun Server\gamemodes\SK8.pwn(679) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\Documents and Settings\Janek\Desktop\[SK8] Fun Server\gamemodes\SK8.pwn(679) : warning 219: local variable "Angle" shadows a variable at a preceding level
C:\Documents and Settings\Janek\Desktop\[SK8] Fun Server\gamemodes\SK8.pwn(1203) : warning 219: local variable "X" shadows a variable at a preceding level
C:\Documents and Settings\Janek\Desktop\[SK8] Fun Server\gamemodes\SK8.pwn(1203) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\Documents and Settings\Janek\Desktop\[SK8] Fun Server\gamemodes\SK8.pwn(1203) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\Documents and Settings\Janek\Desktop\[SK8] Fun Server\gamemodes\SK8.pwn(1756) : warning 219: local variable "X" shadows a variable at a preceding level
C:\Documents and Settings\Janek\Desktop\[SK8] Fun Server\gamemodes\SK8.pwn(1756) : warning 219: local variable "Y" shadows a variable at a preceding level
C:\Documents and Settings\Janek\Desktop\[SK8] Fun Server\gamemodes\SK8.pwn(1756) : warning 219: local variable "Z" shadows a variable at a preceding level
C:\Documents and Settings\Janek\Desktop\[SK8] Fun Server\gamemodes\SK8.pwn(1756) : warning 219: local variable "Angle" shadows a variable at a preceding level
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase

Header size:           5384 bytes
Code size:           234916 bytes
Data size:           290480 bytes
Stack/heap size:      16384 bytes; estimated max. usage=4804 cells (19216 bytes)
Total requirements:  547164 bytes

19 Warnings.
Reply
#2

if think so some include done that. You are defining dcmd twice and also Float X,Y,Z
Reply
#3

pawn Код:
C:\Documents and Settings\Janek\Desktop\[SK8] Fun Server\gamemodes\SK8.pwn(231) : warning 201: redefinition of constant/macro (symbol "dcmd(%1,%2,%3)")
C:\Documents and Settings\Janek\Desktop\[SK8] Fun Server\gamemodes\SK8.pwn(276) : error 017: undefined symbol "GetPlayerFile"
C:\Documents and Settings\Janek\Desktop\[SK8] Fun Server\gamemodes\SK8.pwn(276) : error 033: array must be indexed (variable "file")
C:\Documents and Settings\Janek\Desktop\[SK8] Fun Server\gamemodes\SK8.pwn(277) : error 017: undefined symbol "CreateUserConfigFile"
C:\Documents and Settings\Janek\Desktop\[SK8] Fun Server\gamemodes\SK8.pwn(279) : error 017: undefined symbol "ForbidNames"
C:\Documents and Settings\Janek\Desktop\[SK8] Fun Server\gamemodes\SK8.pwn(279) : warning 215: expression has no effect
C:\Documents and Settings\Janek\Desktop\[SK8] Fun Server\gamemodes\SK8.pwn(279) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Janek\Desktop\[SK8] Fun Server\gamemodes\SK8.pwn(279) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Janek\Desktop\[SK8] Fun Server\gamemodes\SK8.pwn(279) : fatal error 107: too many error messages on one line

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


7 Errors.
How do fixs that 7 errors?
Reply
#4

ok show your full code. Otherwise I can't fix
Reply
#5

Quote:
Originally Posted by Steven Paul
Посмотреть сообщение
ok show your full code. Otherwise I can't fix
pawn Код:
LINE 276: new string[256],PlayerName[24],file[256]; file = GetPlayerFile(playerid);
LINE 277: GetPlayerName(playerid,PlayerName,24); if(!dini_Exists(file)) CreateUserConfigFile(playerid);
LINE 279: if(strfind(PlayerName,ForbidNames[i],true)!=-1 && Config[ForbidData]) {
Reply
#6

Without code we can't do a thing, judging by the errors, you have probally copy 'n' pasted something in, and redefined some stuff without knowing
Reply
#7

pawn Код:
public OnPlayerConnect(playerid)
{
    new string[256],PlayerName[24],file[256]; file = GetPlayerFile(playerid);
    GetPlayerName(playerid,PlayerName,24); if(!dini_Exists(file)) CreateUserConfigFile(playerid);
    for(new i = 0; i < 100; i++) {
        if(strfind(PlayerName,ForbidNames[i],true)!=-1 && Config[ForbidData]) {
            switch(Config[ForbidData]) { case 1: Kick(playerid); case 2: Ban(playerid); }
            return 1;
        }
    }
    if(Config[DisplayServerMessage]) { format(string,sizeof(string),"Server Message: %s",dini_Get("/xadmin/Configuration/Configuration.ini","ServerMessage")); SendClientMessage(playerid,green,string); }
    Variables[playerid][Registered] = GetPlayerFileVar(playerid,"Registered"),
    Variables[playerid][Level] = GetPlayerFileVar(playerid,"Level");
    Variables[playerid][Wired] = GetPlayerFileVar(playerid,"Wired");
    Variables[playerid][Jailed] = GetPlayerFileVar(playerid,"Jailed");
    if(Variables[playerid][Wired]) SetUserInt(playerid,"WiredWarnings",Config[WiredWarnings]);
    if(Variables[playerid][Level] > Config[MaxLevel]) { Variables[playerid][Level] = Config[MaxLevel]; SetUserInt(playerid,"Level",Config[MaxLevel]); }
    if(!Variables[playerid][Registered]) format(string,256,"Welcome, %s. To register an account to this server, type \"/REGISTER <PASSWORD>\".",PlayerName);
    else {
        new tmp[50],tmp2[256]; GetPlayerIp(playerid,tmp,50); tmp2 = dini_Get(file,"IP");
        if(!strcmp(tmp,tmp2,true)) {
            format(string,256,"Welcome back, %s. You have automatically been logged in.",PlayerName);
            Variables[playerid][LoggedIn] = true;
        }
        else {
            format(string,256,"Welcome back, %s. To log back into your account, type \"/LOGIN <PASSWORD>\".",PlayerName);
            Variables[playerid][LoggedIn] = false;
        }
    }
    SendClientMessage(playerid,yellow,string);
    for(new i = 0; i < MAX_VEHICLES; i++) if(VehicleLockData[i]) SetVehicleParamsForPlayer(i,playerid,false,true);
    if(Config[DisplayConnectMessages]) { format(string,256,"*** %s has joined the server.",PlayerName); for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i) && playerid != i) SendClientMessage(i,grey,string); }
    return 1;
}
Reply
#8

Your string's array are too high, i guess.
Reply
#9

OOOMG change all strings to 128 please
Reply
#10

Quote:
Originally Posted by alpha500delta
Посмотреть сообщение
OOOMG change all strings to 128 please
I change but i have 7 errors!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)