Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: BIG[H] on April 28, 2011, 02:22:28 pm

Title: i got Stucked
Post by: BIG[H] on April 28, 2011, 02:22:28 pm
Quote
*:***\******\*****\****HLDS.pwn(692) : warning 213: tag mismatch
*:***\******\*****\****HLDS.pwn(693) : warning 213: tag mismatch
*:***\******\*****\****HLDS.pwn(695) : warning 213: tag mismatch
*:***\******\*****\****HLDS.pwn(866) : warning 213: tag mismatch
*:***\******\*****\****HLDS.pwn(904) : warning 213: tag mismatch

Pawn compiler 3.0.3367         Copyright (c) 1997-2005, ITB CompuPhase


5 Warnings.

quote that Gives this Is:
Lines (692 , 693 , 695)
for 3 warnings:
Quote
else if (strcmp(cmd, "maplist", true) == 0) {
          
      new conty[1024];
      new filepathz[256];
         format(filepathz,sizeof(filepathz),"/MiniWar/Mapslist.ini");
    if(fexist(filepathz)) {
      new fileoo;
692      fileoo = fopen(filepathz,io_read);
693      fread(fileoo,conty,1204);
            SendClientMessage(playerid,COLOR_YELLOW,conty);
695      fclose(fileoo);
   }
      return 1;
      }
other Line (866)
Quote
866   else if(plrteam[playerid][Terrorist] == 0) {SendClientMessage(playerid,COLOR_YELLOW,"Only Terrorist Can Plant BOMB");}

Line (904)

Quote
904   else if(plrteam[playerid][Terrorist] == 0) {SendClientMessage(playerid,COLOR_YELLOW,"Only Terrorist Can Plant BOMB");}


I got Really Stucked at these Warnings Please Fix them
Title: Re: i got Stucked
Post by: stormeus on April 28, 2011, 10:39:24 pm
Quote
*:***\******\*****\****HLDS.pwn(692) : warning 213: tag mismatch
*:***\******\*****\****HLDS.pwn(693) : warning 213: tag mismatch
*:***\******\*****\****HLDS.pwn(695) : warning 213: tag mismatch
*:***\******\*****\****HLDS.pwn(866) : warning 213: tag mismatch
*:***\******\*****\****HLDS.pwn(904) : warning 213: tag mismatch

Pawn compiler 3.0.3367         Copyright (c) 1997-2005, ITB CompuPhase


5 Warnings.

quote that Gives this Is:
Lines (692 , 693 , 695)
for 3 warnings:
Quote
else if (strcmp(cmd, "maplist", true) == 0) {
         
      new conty[1024];
      new filepathz[256];
         format(filepathz,sizeof(filepathz),"/MiniWar/Mapslist.ini");
    if(fexist(filepathz)) {
      new fileoo;
692      fileoo = fopen(filepathz,io_read);
693      fread(fileoo,conty,1204);
            SendClientMessage(playerid,COLOR_YELLOW,conty);
695      fclose(fileoo);
   }
      return 1;
      }
other Line (866)
Quote
866   else if(plrteam[playerid][Terrorist] == 0) {SendClientMessage(playerid,COLOR_YELLOW,"Only Terrorist Can Plant BOMB");}

Line (904)

Quote
904   else if(plrteam[playerid][Terrorist] == 0) {SendClientMessage(playerid,COLOR_YELLOW,"Only Terrorist Can Plant BOMB");}


I got Really Stucked at these Warnings Please Fix them

new fileoo;

To use fopen, you have to specifically say the variable's a file. Use new File:fileoo;
Title: Re: i got Stucked
Post by: BIG[H] on April 28, 2011, 11:21:22 pm
Thanks Stormeus 

File:fileoo

and wat about other two
Title: Re: i got Stucked
Post by: stormeus on April 28, 2011, 11:29:25 pm
Thanks Stormeus 

File:fileoo

and wat about other two

Post the code for new plrteam
Title: Re: i got Stucked
Post by: BIG[H] on April 28, 2011, 11:41:54 pm
OK i got it :)
I was just Spellings mistake Like
Terrorist was Terroristz
Title: Re: i got Stucked
Post by: tato on April 30, 2011, 08:03:08 pm
866    if(plrteam[playerid][Terrorist] == 0) SendClientMessage(playerid,COLOR_YELLOW,"Only Terrorist Can Plant BOMB");
else {
   //whatever you want to put here
}
return 1;

the same with the other line



Title: Re: i got Stucked
Post by: BIG[H] on April 30, 2011, 08:12:53 pm
I SAID I GOT IT SO ....Thanks any way But i Already got it You can't read? I am Pro In Scripting Just Forgot File Thing Not Your One :P no  SPAM PLEASE
Title: Re: i got Stucked
Post by: tato on May 01, 2011, 10:29:16 am
I SAID I GOT IT SO ....Thanks any way But i Already got it You can't read? I am Pro In Scripting Just Forgot File Thing Not Your One :P no  SPAM PLEASE
GOSH yes i can read..... then lock the topic if u already got it >_ <