SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese > Lançamentos/Releases

Reply
 
Thread Tools Display Modes
Old 08/05/2011, 07:36 PM   #11
[R] ousenber [K]
Gangsta
 
[R] ousenber [K]'s Avatar
 
Join Date: Jan 2011
Posts: 896
Reputation: 18
Default Re: Como Criar Sistema de Adminstração Simples.

4 erros e 1 warning, fiz tudo o q pediu baixei o zcmd e coloquei coloquei a sscanf e peguei seu dini e fiz tudo e deu esses erros, so q em fala esse nigoso de CMD:registrar etc.. e pra por aonde final gm? comeco? onplayercommandtext? explica um poco mais !

erros:

pawn Code:
C:\Users\Washington\Desktop\testes\pawno\include\dini.inc(241) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Washington\Desktop\testes\gamemodes\lvdm.pwn(169) : error 001: expected token: ")", but found "["
C:\Users\Washington\Desktop\testes\gamemodes\lvdm.pwn(169) : error 029: invalid expression, assumed zero
C:\Users\Washington\Desktop\testes\gamemodes\lvdm.pwn(169) : warning 215: expression has no effect
C:\Users\Washington\Desktop\testes\gamemodes\lvdm.pwn(169) : error 001: expected token: ";", but found "]"
C:\Users\Washington\Desktop\testes\gamemodes\lvdm.pwn(169) : fatal error 107: too many error messages on one line

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


4 Errors.
[R] ousenber [K] is offline   Reply With Quote
Old 08/05/2011, 08:27 PM   #12
TheGarfield
Banned
 
Join Date: Jul 2010
Location: -_-
Posts: 654
Reputation: 11
Default Re: Como Criar Sistema de Adminstração Simples.

depois que se estala o ZCMD o OnPlayerCommandText fica inativo, isto é, só serve para dar erros.
apágeo depois poste as linhas e os erros.
TheGarfield is offline   Reply With Quote
Old 08/05/2011, 08:28 PM   #13
[R] ousenber [K]
Gangsta
 
[R] ousenber [K]'s Avatar
 
Join Date: Jan 2011
Posts: 896
Reputation: 18
Default Re: Como Criar Sistema de Adminstração Simples.

mesmos erros , era pra tirar a linha do #include <zcmd> , certo? se for continuo os mesmos erros
[R] ousenber [K] is offline   Reply With Quote
Old 08/05/2011, 08:43 PM   #14
TheGarfield
Banned
 
Join Date: Jul 2010
Location: -_-
Posts: 654
Reputation: 11
Default Re: Como Criar Sistema de Adminstração Simples.

não!.
deverá retirar o OnPlayerCommandText.
TheGarfield is offline   Reply With Quote
Old 08/05/2011, 08:47 PM   #15
[R] ousenber [K]
Gangsta
 
[R] ousenber [K]'s Avatar
 
Join Date: Jan 2011
Posts: 896
Reputation: 18
Default Re: Como Criar Sistema de Adminstração Simples.

mais como que vou criar comandos? o.O

@edit

os erros continua msm depois deu tira o OnPlayerCommandText
[R] ousenber [K] is offline   Reply With Quote
Old 08/05/2011, 08:58 PM   #16
TheGarfield
Banned
 
Join Date: Jul 2010
Location: -_-
Posts: 654
Reputation: 11
Default Re: Como Criar Sistema de Adminstração Simples.

manda os erros e as linhas

mais acho que é:

pawn Code:
new string[100];

Aperte CTRL+F e na primeira caixa bote string e na segunda caixa bota iString
TheGarfield is offline   Reply With Quote
Old 08/05/2011, 09:02 PM   #17
[R] ousenber [K]
Gangsta
 
[R] ousenber [K]'s Avatar
 
Join Date: Jan 2011
Posts: 896
Reputation: 18
Default Re: Como Criar Sistema de Adminstração Simples.

e CTRL+H pra substituir certo?, substitui e continuo msm erro OMG , mais agora acabo 1 warning so q os erros OWNED!

linhas dos erros!

pawn Code:
if(AdminInfo[playerid][Logado] == true)

pawn Code:
AGORA AONDE TA A LINHA ACIMA

public OnPlayerDisconnect(playerid)
{
    gActivePlayers[playerid]--;
 if(AdminInfo[playerid][Logado] == true)
    {
    dini_Set(iString, "Nivel", AdminInfo[playerid][Nivel]);
    }
    return 1;
}

ERROS:
pawn Code:
C:\Users\Washington\Desktop\testes\gamemodes\lvdm.pwn(169) : error 001: expected token: ")", but found "["
C:\Users\Washington\Desktop\testes\gamemodes\lvdm.pwn(169) : error 029: invalid expression, assumed zero
C:\Users\Washington\Desktop\testes\gamemodes\lvdm.pwn(169) : warning 215: expression has no effect
C:\Users\Washington\Desktop\testes\gamemodes\lvdm.pwn(169) : error 001: expected token: ";", but found "]"
C:\Users\Washington\Desktop\testes\gamemodes\lvdm.pwn(169) : fatal error 107: too many error messages on one line

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


4 Errors.
[R] ousenber [K] is offline   Reply With Quote
Old 05/06/2011, 06:55 PM   #18
Andrew_Guiga
Huge Clucker
 
Join Date: Apr 2011
Location: Los Santos
Posts: 338
Reputation: 1
Default Re: Como Criar Sistema de Adminstração Simples.

belo tuto ajudara muitos
Andrew_Guiga is offline   Reply With Quote
Old 06/06/2011, 04:28 PM   #19
TheGarfield
Banned
 
Join Date: Jul 2010
Location: -_-
Posts: 654
Reputation: 11
Default Re: Como Criar Sistema de Adminstração Simples.

Quote:
Originally Posted by dylan4021 View Post
e CTRL+H pra substituir certo?, substitui e continuo msm erro OMG , mais agora acabo 1 warning so q os erros OWNED!

linhas dos erros!

pawn Code:
if(AdminInfo[playerid][Logado] == true)

pawn Code:
AGORA AONDE TA A LINHA ACIMA

public OnPlayerDisconnect(playerid)
{
    gActivePlayers[playerid]--;
 if(AdminInfo[playerid][Logado] == true)
    {
    dini_Set(iString, "Nivel", AdminInfo[playerid][Nivel]);
    }
    return 1;
}

ERROS:
pawn Code:
C:\Users\Washington\Desktop\testes\gamemodes\lvdm.pwn(169) : error 001: expected token: ")", but found "["
C:\Users\Washington\Desktop\testes\gamemodes\lvdm.pwn(169) : error 029: invalid expression, assumed zero
C:\Users\Washington\Desktop\testes\gamemodes\lvdm.pwn(169) : warning 215: expression has no effect
C:\Users\Washington\Desktop\testes\gamemodes\lvdm.pwn(169) : error 001: expected token: ";", but found "]"
C:\Users\Washington\Desktop\testes\gamemodes\lvdm.pwn(169) : fatal error 107: too many error messages on one line

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


4 Errors.

adicione na array AdminInfo[]

pawn Code:
enum pAdmin
{
     bool:Logado
}
TheGarfield is offline   Reply With Quote
Old 06/06/2011, 06:28 PM   #20
[R] ousenber [K]
Gangsta
 
[R] ousenber [K]'s Avatar
 
Join Date: Jan 2011
Posts: 896
Reputation: 18
Default Re: Como Criar Sistema de Adminstração Simples.

Garfeld, Vlw à ajuda , Mais faz um tempim que coseguir concertar(quebrando a cabeça toda) , Mais muito obrigado
[R] ousenber [K] is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[AJUDA] Como criar um sistema de gang publica - POLICIA taynam22 Português/Portuguese 10 26/05/2011 08:33 PM
[FilterScript] Simples Sistema de Concessionaria ! Baddark2131 Lançamentos/Releases 17 03/04/2011 04:25 AM
[FilterScript] [FS] Sistema de AFK simples. zSuYaNw Lançamentos/Releases 10 14/11/2010 07:27 AM
[Resolvido]Como Criar Sistema Level Profissoes angels182 Português/Portuguese 2 23/04/2010 05:58 PM


All times are GMT. The time now is 06:24 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.