[AJUDA] 4 erros na mesma linha. ~
#1

Код:
(1992) : error 029: invalid expression, assumed zero
(1992) : warning 215: expression has no effect
(1992) : error 001: expected token: ";", but found ")"
(1992) : error 029: invalid expression, assumed zero
(1992) : fatal error 107: too many error messages on one line
Esses sгo os erros, e esta й a linha:

Код:
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
if(dini_Int("Admins.ini",aname) == 1 || dini_Int("Admins.ini",aname) == 2 || dini_Int("Admins.ini",aname) == 3 || dini_Int("Admins.ini",aname) == 4 || dini_Int("Admins.ini",aname) == 5){
if(function218(vehicleid))
O problema й no if(function218(vehicleid)), o que posso fazer? :/
Reply
#2

pawn Код:
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, MAX_PLAYER_NAME);
if(dini_Int("Admins.ini",aname) == 1 || dini_Int("Admins.ini",aname) == 2 || dini_Int("Admins.ini",aname) == 3 || dini_Int("Admins.ini",aname) == 4 || dini_Int("Admins.ini",aname) == 5)){
if(function218(vehicleid))
Reply
#3

Sу piorou.

Код:
(1991) : error 029: invalid expression, assumed zero
(1992) : error 029: invalid expression, assumed zero
(1992) : warning 215: expression has no effect
(1992) : error 001: expected token: ";", but found ")"
(1992) : error 029: invalid expression, assumed zero
(1992) : fatal error 107: too many error messages on one line
Reply
#4

Ele botou um paratense a mais, eu chequei o cmd e nгo precisava do q o garfield botou, nгo sei o problema, mas apenas estava corrigindo o garfield
Reply
#5

pawn Код:
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, sizeof(aname));
if(dini_Int("Admins.ini",aname) == 1 || dini_Int("Admins.ini",aname) == 2 || dini_Int("Admins.ini",aname) == 3 || dini_Int("Admins.ini",aname) == 4 || dini_Int("Admins.ini",aname) == 5){
if(function218(vehicleid))
tenta isso O.o

@EDIT:

passa o public do "function218" pra noiz confiri
Reply
#6

Код:
function218(arg0)
{
new var0 = GetVehicleModel(arg0);
switch(var0) {
case 444:
return 0;
case 581:
return 0;
case 586:
return 0;
case 481:
return 0;
case 509:
return 0;
case 446:
return 0;
case 556:
return 0;
case 443:
return 0;
case 452:
return 0;
case 453:
return 0;
case 454:
return 0;
case 472:
return 0;
case 473:
return 0;
case 484:
return 0;
case 493:
return 0;
case 595:
return 0;
case 462:
return 0;
case 463:
return 0;
case 468:
return 0;
case 521:
return 0;
case 522:
return 0;
case 417:
return 0;
case 425:
return 0;
case 447:
return 0;
case 487:
return 0;
case 488:
return 0;
case 497:
return 0;
case 501:
return 0;
case 548:
return 0;
case 563:
return 0;
case 406:
return 0;
case 520:
return 0;
case 539:
return 0;
case 553:
return 0;
case 557:
return 0;
case 573:
return 0;
case 460:
return 0;
case 593:
return 0;
case 464:
return 0;
case 476:
return 0;
case 511:
return 0;
case 512:
return 0;
case 577:
return 0;
case 592:
return 0;
case 471:
return 0;
case 448:
return 0;
case 461:
return 0;
case 523:
return 0;
case 510:
return 0;
case 430:
return 0;
case 465:
return 0;
case 469:
return 0;
case 513:
return 0;
case 519:
return 0;
}
return 1;
}
Segundo meu amigo, esses case ... sгo os IDs dos Veнculos que nгo podem ser usados pelos Players, apenas pelos Admins
Reply
#7

Isso й um Public ou nгo??
Reply
#8

Tenta :
pawn Код:
new aname[MAX_PLAYER_NAME];
GetPlayerName(playerid, aname, sizeof(aname));
if(dini_Int("Admins.ini",aname) == 1 || dini_Int("Admins.ini",aname) == 2 || dini_Int("Admins.ini",aname) == 3 || dini_Int("Admins.ini",aname) == 4 || dini_Int("Admins.ini",aname) == 5)
if(function218(vehicleid))
Agora Vai eu To Confiante
Reply
#9

Vo fala apenas uma coisa: VAI DA ERROOOOOO!!!!!!!!! Nгo adianto vocк tira a Chave porque sem ela vai faze buga o pawn O.o()

##EDIT##

tenta po no inicio do seu gm
pawn Код:
#pragma tabsize 0
Reply
#10

Quote:
Originally Posted by Dr_Pawno
Посмотреть сообщение
Vo fala apenas uma coisa: VAI DA ERROOOOOO!!!!!!!!! Nгo adianto vocк tira a Chave porque sem ela vai faze buga o pawn O.o()

##EDIT##

tenta po no inicio do seu gm
pawn Код:
#pragma tabsize 0
Cara se Nao Me Engano eu tenho esse gm ele dava esse msm erro eu tirei a chave e foi --'
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)