03.01.2014, 23:25
SO EM PRIMEIRO NГO DOU AULAS PAWN ERRA SO DE ZUERA O POST AE EM FIM
ESTOU TETANDO CRIA O TEXTDRAW E ESTA DANDO ESSE ERRO VEJA
concerta pra mim pf
ESTOU TETANDO CRIA O TEXTDRAW E ESTA DANDO ESSE ERRO VEJA
C:\Users\DANIEL\Desktop\Brasil Mundo Realista\gamemodes\BMR.pwn(64) : error 001: expected token: ";", but found "-identifier-"
C:\Users\DANIEL\Desktop\Brasil Mundo Realista\gamemodes\BMR.pwn(76) : error 021: symbol already defined: "OnGameModeInit"
C:\Users\DANIEL\Desktop\Brasil Mundo Realista\gamemodes\BMR.pwn(7 : error 010: invalid function or declaration
C:\Users\DANIEL\Desktop\Brasil Mundo Realista\gamemodes\BMR.pwn(85) : error 001: expected token: ";", but found "public"
C:\Users\DANIEL\Desktop\Brasil Mundo Realista\gamemodes\BMR.pwn(87) : warning 203: symbol is never used: "OnGameModeinit"
C:\Users\DANIEL\Desktop\Brasil Mundo Realista\gamemodes\BMR.pwn(87) : warning 203: symbol is never used: "Textdrawdebaixodoradar"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
VEJA COMO ESTA O SCRIPTC:\Users\DANIEL\Desktop\Brasil Mundo Realista\gamemodes\BMR.pwn(76) : error 021: symbol already defined: "OnGameModeInit"
C:\Users\DANIEL\Desktop\Brasil Mundo Realista\gamemodes\BMR.pwn(7 : error 010: invalid function or declaration
C:\Users\DANIEL\Desktop\Brasil Mundo Realista\gamemodes\BMR.pwn(85) : error 001: expected token: ";", but found "public"
C:\Users\DANIEL\Desktop\Brasil Mundo Realista\gamemodes\BMR.pwn(87) : warning 203: symbol is never used: "OnGameModeinit"
C:\Users\DANIEL\Desktop\Brasil Mundo Realista\gamemodes\BMR.pwn(87) : warning 203: symbol is never used: "Textdrawdebaixodoradar"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
PHP код:
//includes do serivdor
#include <a_samp>
//defines cores
#define Branco 0xFFFFFFFF//Cor Branco
#define Azul 0x002CBFFF//Cor Azul
#define Verde 0x17FA12FF//Cor Verde
#define Laranja 0xFF8000FF//Cor Laranja
#define Amarelo 0xFFFF00FF//Cor Amarelo
#define Meiorosa 0xFF0080FF//Cor Meiorosa
#define Azulbb 0x24C9DBFF//Cor Azulbb
#define Vermelhoescuro 0xA9012FFF//Cor Vermelhoescuro
#define Vermelho 0xFE0549FF//Cor Vermelho
main()//raiz do GM
{
print("|-----------------------------------|");//mensagem quando liga o serivodr
print("| Brasil Mundo Realista |");//mensagem quando liga o serivodr
print("|-----------------------------------|");//mensagem quando liga o serivodr
}
public OnGameModeInit()//GM INICIA
{
SetGameModeText("[B.M.R]");//nome do modo
AddPlayerClass(0,661.1360,-439.4110,16.3359,168.8632,0,0,0,0,0,0); //
}
public OnPlayerConnect(playerid)
{
new nomeplayer[50];
new mensagem[50];
GetPlayerName(playerid,nomeplayer,sizeof(nomeplayer));
format(mensagem,sizeof(mensagem),"[INFO SERVER]%s - Entrou no servidor",nomeplayer);
SendClientMessageToAll(Branco,mensagem);
}
new Text:Textdrawdebaixodoradar;//textdraw
public OnGameModeinit//adicionado para gm
Textdrawdebaixodoradar= TextDrawCreate(1.0, 433.0, "Brasil Mundo Realista*");
TextDrawAlignment(Textdrawdebaixodoradar,0);//Nгo mecher
TextDrawBackgroundColor(Textdrawdebaixodoradar,0x000000ff);//Nгo mecher
TextDrawFont(Textdrawdebaixodoradar,2);//Tipo de Letro (veja o *[2]mais abaixo)
TextDrawLetterSize(Textdrawdebaixodoradar,0.2999, 1.4);//Nгo mecher
TextDrawBoxColor(Textdrawdebaixodoradar,0x00000050);//Nгo mecher
TextDrawColor(Textdrawdebaixodoradar,0xffffffff);//Nгo mecher
TextDrawSetOutline(Textdrawdebaixodoradar,1);//Nгo mecher
TextDrawSetProportional(Textdrawdebaixodoradar,1);//Nгo mecher
TextDrawSetShadow(Textdrawdebaixodoradar,1);//Nгo mecher
public OnGameModeInit
for(new i; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
TextDrawShowForPlayer(i, Textdrawdebaixodoradar);
}
}
public OnGameModeExit
public OnPlayerConnect
TextDrawShowForPlayer(playerid, Textdrawdebaixodoradar);