14.07.2014, 22:08
Qual melhor include 'objetos', meu servidor tem bastante objetos e quero uma include suportбvel alguйm sabe uma?
TimerCP = SetTimerEx("CheckCP", 1500, true, "i", playerid);
public pPickups(playerid)
{
PlayerInfo[playerid][pPickup] = 0;
}
new MsgEnviada[MAX_PLAYERS];
new exemplo;
public OnGameModeInit()
{
exemplo = CreateDynamicCP(...);
return 1;
}
public OnPlayerEnterDynamicCP(playerid, checkpointid)
{
if(checkpointid == exemplo)
{
if(MsgEnviada[playerid] == 0)
{
SendClientMessage(playerid, -1, "Ola!");
MsgEnviada[playerid] = 1;
}
}
return 1;
}
public OnPlayerLeaveDynamicCP(playerid, checkpointid)
{
MsgEnviada[playerid] = 0;
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
switch(pickupid){
case pk1: Msg(playerid, -1, "Tals");
case pk2: Msg(playerid, -1, "Tals");
default: Msg(playerid, -1, "Tals");
}
return 1;
}
Tem que usar aspas tanto no define, quanto na hora de usar.
Code:
#define AZUL_R "{2F7A97}" Code:
ShowPlayerDialog(playerid,DialogRegister,DIALOG_STYLE_INPUT,""{AZUL_R}"Registro","Vocк ainda nгo possui uma conta em nosso banco de dados.\nDigite uma senha abaixo caso queira criar uma:","{BRANCO_R}Registrar","{BRANCO_R}Sair"); |
C:\Users\Lucas\Downloads\samp03z_svr_R4_win32\gamemodes\brp.pwn(97) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\Lucas\Downloads\samp03z_svr_R4_win32\gamemodes\brp.pwn(97) : warning 215: expression has no effect C:\Users\Lucas\Downloads\samp03z_svr_R4_win32\gamemodes\brp.pwn(97) : error 001: expected token: ";", but found "}" C:\Users\Lucas\Downloads\samp03z_svr_R4_win32\gamemodes\brp.pwn(97) : warning 217: loose indentation C:\Users\Lucas\Downloads\samp03z_svr_R4_win32\gamemodes\brp.pwn(97) : warning 215: expression has no effect C:\Users\Lucas\Downloads\samp03z_svr_R4_win32\gamemodes\brp.pwn(97) : warning 215: expression has no effect C:\Users\Lucas\Downloads\samp03z_svr_R4_win32\gamemodes\brp.pwn(97) : warning 215: expression has no effect C:\Users\Lucas\Downloads\samp03z_svr_R4_win32\gamemodes\brp.pwn(97) : warning 215: expression has no effect C:\Users\Lucas\Downloads\samp03z_svr_R4_win32\gamemodes\brp.pwn(97) : error 001: expected token: ";", but found ")" C:\Users\Lucas\Downloads\samp03z_svr_R4_win32\gamemodes\brp.pwn(97) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
ShowPlayerDialog(playerid,DialogRegister,DIALOG_STYLE_INPUT,""{AZUL_R}"Registro","{FFFFFF}Vocк ainda nгo possui uma conta em nosso banco de dados.\nDigite uma senha abaixo caso queira criar uma:","Registrar","Sair");
Deram os seguintes erros:
Code:
C:\Users\Lucas\Downloads\samp03z_svr_R4_win32\gamemodes\brp.pwn(97) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\Lucas\Downloads\samp03z_svr_R4_win32\gamemodes\brp.pwn(97) : warning 215: expression has no effect C:\Users\Lucas\Downloads\samp03z_svr_R4_win32\gamemodes\brp.pwn(97) : error 001: expected token: ";", but found "}" C:\Users\Lucas\Downloads\samp03z_svr_R4_win32\gamemodes\brp.pwn(97) : warning 217: loose indentation C:\Users\Lucas\Downloads\samp03z_svr_R4_win32\gamemodes\brp.pwn(97) : warning 215: expression has no effect C:\Users\Lucas\Downloads\samp03z_svr_R4_win32\gamemodes\brp.pwn(97) : warning 215: expression has no effect C:\Users\Lucas\Downloads\samp03z_svr_R4_win32\gamemodes\brp.pwn(97) : warning 215: expression has no effect C:\Users\Lucas\Downloads\samp03z_svr_R4_win32\gamemodes\brp.pwn(97) : warning 215: expression has no effect C:\Users\Lucas\Downloads\samp03z_svr_R4_win32\gamemodes\brp.pwn(97) : error 001: expected token: ";", but found ")" C:\Users\Lucas\Downloads\samp03z_svr_R4_win32\gamemodes\brp.pwn(97) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. Code:
ShowPlayerDialog(playerid,DialogRegister,DIALOG_STYLE_INPUT,""{AZUL_R}"Registro","{FFFFFF}Vocк ainda nгo possui uma conta em nosso banco de dados.\nDigite uma senha abaixo caso queira criar uma:","Registrar","Sair"); |
ShowPlayerDialog(playerid,DialogRegister,DIALOG_STYLE_INPUT,""AZUL_R"Registro","{FFFFFF}Vocк ainda nгo possui uma conta em nosso banco de dados.\nDigite uma senha abaixo caso queira criar uma:","Registrar","Sair");
enum E_SERVER_RULE_FLAGS (<<= 1) { CON_VARFLAG_DEBUG = 1, CON_VARFLAG_READONLY, CON_VARFLAG_RULE, CON_VARFLAG_UNREMOVABLE }
Vendo o YSF do kurta999, me deparei com isso:
Code:
enum E_SERVER_RULE_FLAGS (<<= 1) { CON_VARFLAG_DEBUG = 1, CON_VARFLAG_READONLY, CON_VARFLAG_RULE, CON_VARFLAG_UNREMOVABLE } |
enum IPSI_BITS (<<=1) { bit16 = 2, // Valores ate 65536 bit4, // Valores ate 15 bit2, // Valores ate 3 bit1 // bool true ou false };
Vendo o YSF do kurta999, me deparei com isso:
Code:
enum E_SERVER_RULE_FLAGS (<<= 1) { CON_VARFLAG_DEBUG = 1, CON_VARFLAG_READONLY, CON_VARFLAG_RULE, CON_VARFLAG_UNREMOVABLE } |
VARCHAR ou TEXT na tabela do MySQL qual devo usar para textos?
|