Some warnings...
#1

Код:
C:\Users\Anakin995\Documents\server\HC-RP\gamemodes\SC-RP.pwn(68) : warning 202: number of arguments does not match definition
C:\Users\Anakin995\Documents\server\HC-RP\gamemodes\SC-RP.pwn(68) : warning 202: number of arguments does not match definition
C:\Users\Anakin995\Documents\server\HC-RP\gamemodes\SC-RP.pwn(88) : warning 202: number of arguments does not match definition
C:\Users\Anakin995\Documents\server\HC-RP\gamemodes\SC-RP.pwn(88) : warning 202: number of arguments does not match definition
C:\Users\Anakin995\Documents\server\HC-RP\gamemodes\SC-RP.pwn(267) : warning 217: loose indentation
C:\Users\Anakin995\Documents\server\HC-RP\gamemodes\SC-RP.pwn(268) : warning 217: loose indentation
C:\Users\Anakin995\Documents\server\HC-RP\gamemodes\SC-RP.pwn(269) : warning 217: loose indentation
68:
pawn Код:
SendClientMessageToAll(0xFF00AA, "[%d] %s и arrivato in cittа!",playerid, plname);
88:
pawn Код:
SendClientMessageToAll(0xFF00AA, "[%d] %s и andato via dalla cittа!",playerid, plname);
267 & 268 & 269:
pawn Код:
if (!strlen(inputtext)) return ShowPlayerDialog(playerid, Register, DIALOG_STYLE_INPUT, "Registra", "Scrivi la password per registrarti", "Accetta", "Annulla");
            if (!response) return ShowPlayerDialog(playerid, Register, DIALOG_STYLE_INPUT, "Registra", "Scrivi la password per registrarti", "Accetta", "Annulla");
        GetPlayerName(playerid, playaname, sizeof(playaname));
Help Me!
Reply
#2

use format function.

example.
pawn Код:
format(string, sizeof(string), "[%d] %s и arrivato in cittа!",playerid, plname);
SendClientMessageToAll(0xFF00AA, string);
Reply
#3

Thx..
now but:
C:\Users\Anakin995\Documents\server\HC-RP\gamemodes\SC-RP.pwn(272) : warning 217: loose indentation
C:\Users\Anakin995\Documents\server\HC-RP\gamemodes\SC-RP.pwn(273) : warning 217: loose indentation
C:\Users\Anakin995\Documents\server\HC-RP\gamemodes\SC-RP.pwn(274) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Warnings.

pawn Код:
if (!strlen(inputtext)) return ShowPlayerDialog(playerid, Register, DIALOG_STYLE_INPUT, "Registra", "Scrivi la password per registrarti", "Accetta", "Annulla");
            if (!response) return ShowPlayerDialog(playerid, Register, DIALOG_STYLE_INPUT, "Registra", "Scrivi la password per registrarti", "Accetta", "Annulla");
        GetPlayerName(playerid, playaname, sizeof(playaname));
Reply
#4

post me lines

271
272
273
274
275
Reply
#5

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if (dialogid == Register)
    {
        new playaname[MAX_PLAYER_NAME], archivo[256];
         if (!strlen(inputtext)) return ShowPlayerDialog(playerid, Register, DIALOG_STYLE_INPUT, "Registra", "Scrivi la password per registrarti", "Accetta", "Annulla");
          if (!response) return ShowPlayerDialog(playerid, Register, DIALOG_STYLE_INPUT, "Registra", "Scrivi la password per registrarti", "Accetta", "Annulla");
        GetPlayerName(playerid, playaname, sizeof(playaname));
        format(archivo, sizeof(archivo), "/utonti/%s.ini", playaname);
        dini_Create(archivo);
        dini_Set(archivo, "User", playaname);
        dini_Set(archivo, "Livello", PlayerInfo[playerid][pLevel]);
        dini_Set(archivo, "AdminLevel",PlayerInfo[playerid][pAdmin]);
        dini_Set(archivo, "pLeader", PlayerInfo[playerid][pLeader]);
        dini_Set(archivo, "pMember", PlayerInfo[playerid][pMember]);
        ShowPlayerDialog(playerid, Logged, DIALOG_STYLE_INPUT, "Login", "Scrivi la password per loggarti", "Accetta", "Annulla");
    }
    if (dialogid == Logged)
    {
        new playaname[MAX_PLAYER_NAME], archivo[256], comprobante[256];
        if (!strlen(inputtext)) return ShowPlayerDialog(playerid, Logged, DIALOG_STYLE_INPUT, "Login", "Scrivi la password per loggarti", "Accetta", "Annulla");
        if (!response) return ShowPlayerDialog(playerid, Logged, DIALOG_STYLE_INPUT, "Login", "Scrivi la password per loggarti", "Acept", "Annulla");
        GetPlayerName(playerid, playaname, sizeof(playaname));
        format(archivo, sizeof(archivo), "/utonti/%s.ini", playaname);
        format(comprobante, sizeof(comprobante), "%s", dini_Get(archivo, "Password"));
        if (!strcmp (inputtext, comprobante))
        {
            Login[playerid] = 1;
        }
        else
        {
             ShowPlayerDialog(playerid, Logged, DIALOG_STYLE_INPUT, "Login", "Scrivi la password per loggarti", "Accetta", "Annulla");
         }
    }
    return 1;
}
Reply
#6

Type :

#pragma tabsize 0

at top of your scritp.....
Reply
#7

fixed, thx
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)