SA-MP Forums Archive
Tut msgs - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Tut msgs (/showthread.php?tid=387434)



Tut msgs - Dusan01 - 24.10.2012

hy guy! in this code i get this errors:

errors:
Код:
new Tutorial[][] =
{
	if(PlayerInfo[playerid][pLevel] < 3)
   	{
		SendClientMessage(playerid, COLOR_BLUE, "[Tutorial] Ovaj tutorial ce da traje do vaseg 3 levela! ");
		SendClientMessage(playerid, COLOR_BLUE, "[Tutorial] Nemate posao idite u opstinu zaposlite se ! ");
		SendClientMessage(playerid, COLOR_BLUE, "[Tutorial] Uvek postujte jace igrace od sebe! ");
		SendClientMessage(playerid, COLOR_BLUE, "[Tutorial] Za pomoc obratite se na /askq!");
  	}
  	SetTimer("Tutorial", 30000, 1);
	return 1;
};
errors:
Код:
gamemodes\BE x12 edit by Stega.pwn(539) : error 001: expected token: ";", but found "("
gamemodes\BE x12 edit by Stega.pwn(547) : error 010: invalid function or declaration
gamemodes\BE x12 edit by Stega.pwn(548) : error 010: invalid function or declaration
Код:
line 439: 	if(PlayerInfo[playerid][pLevel] < 3)
line 547: 	return 1;
line 548:     };



Re: Tut msgs - HyDrAtIc - 24.10.2012

Код:
new Tutorial[][] =
{
	if(PlayerInfo[playerid][pLevel] < 3);
   	{
		SendClientMessage(playerid, COLOR_BLUE, "[Tutorial] Ovaj tutorial ce da traje do vaseg 3 levela! ");
		SendClientMessage(playerid, COLOR_BLUE, "[Tutorial] Nemate posao idite u opstinu zaposlite se ! ");
		SendClientMessage(playerid, COLOR_BLUE, "[Tutorial] Uvek postujte jace igrace od sebe! ");
		SendClientMessage(playerid, COLOR_BLUE, "[Tutorial] Za pomoc obratite se na /askq!");
  	}
  	SetTimer("Tutorial", 30000, 1);
	return 1;
)



Re: Tut msgs - Dusan01 - 24.10.2012

now i have this errors:

Код:
\gamemodes\BE x12 edit by Stega.pwn(539) : error 001: expected token: ";", but found "("
\gamemodes\BE x12 edit by Stega.pwn(547) : error 010: invalid function or declaration
Код:
line 539: if(PlayerInfo[playerid][pLevel] < 3);



Re: Tut msgs - HyDrAtIc - 24.10.2012

Lines?


Re: Tut msgs - ThePhenix - 24.10.2012

PHP код:
new Tutorial[][] =
{
    if(
PlayerInfo[playerid][pLevel] <= 3);
       {
        
SendClientMessage(playeridCOLOR_BLUE"[Tutorial] Ovaj tutorial ce da traje do vaseg 3 levela! ");
        
SendClientMessage(playeridCOLOR_BLUE"[Tutorial] Nemate posao idite u opstinu zaposlite se ! ");
        
SendClientMessage(playeridCOLOR_BLUE"[Tutorial] Uvek postujte jace igrace od sebe! ");
        
SendClientMessage(playeridCOLOR_BLUE"[Tutorial] Za pomoc obratite se na /askq!");
      }
      
SetTimer("Tutorial"300001);
    return 
1;




Re: Tut msgs - HyDrAtIc - 24.10.2012

Quote:
Originally Posted by ThePhenix
Посмотреть сообщение
PHP код:
new Tutorial[][] =
{
    if(
PlayerInfo[playerid][pLevel] <= 3);
       {
        
SendClientMessage(playeridCOLOR_BLUE"[Tutorial] Ovaj tutorial ce da traje do vaseg 3 levela! ");
        
SendClientMessage(playeridCOLOR_BLUE"[Tutorial] Nemate posao idite u opstinu zaposlite se ! ");
        
SendClientMessage(playeridCOLOR_BLUE"[Tutorial] Uvek postujte jace igrace od sebe! ");
        
SendClientMessage(playeridCOLOR_BLUE"[Tutorial] Za pomoc obratite se na /askq!");
      }
      
SetTimer("Tutorial"300001);
    return 
1;

Hell what?

You just copied my code and claiming like you just made it?

Even my code is wrong go learn scripting before making a reply!


Re: Tut msgs - ThePhenix - 24.10.2012

Quote:
Originally Posted by James_Nick
Посмотреть сообщение
Код:
new Tutorial[][] =
{
	if(PlayerInfo[playerid][pLevel] < 3);
   	{
		SendClientMessage(playerid, COLOR_BLUE, "[Tutorial] Ovaj tutorial ce da traje do vaseg 3 levela! ");
		SendClientMessage(playerid, COLOR_BLUE, "[Tutorial] Nemate posao idite u opstinu zaposlite se ! ");
		SendClientMessage(playerid, COLOR_BLUE, "[Tutorial] Uvek postujte jace igrace od sebe! ");
		SendClientMessage(playerid, COLOR_BLUE, "[Tutorial] Za pomoc obratite se na /askq!");
  	}
  	SetTimer("Tutorial", 30000, 1);
	return 1;
)
Seems like you need glasses!
Look at my code:

PHP код:
new Tutorial[][] =
{
    if(
PlayerInfo[playerid][pLevel] <= 3);// I added <
       
{
        
SendClientMessage(playeridCOLOR_BLUE"[Tutorial] Ovaj tutorial ce da traje do vaseg 3 levela! ");
        
SendClientMessage(playeridCOLOR_BLUE"[Tutorial] Nemate posao idite u opstinu zaposlite se ! ");
        
SendClientMessage(playeridCOLOR_BLUE"[Tutorial] Uvek postujte jace igrace od sebe! ");
        
SendClientMessage(playeridCOLOR_BLUE"[Tutorial] Za pomoc obratite se na /askq!");
      }
      
SetTimer("Tutorial"300001);
    return 
1;

Make sure you look good before judging someone.


Re: Tut msgs - ViniBorn - 24.10.2012

Don't use ' ; ' in the ' if ' line.

pawn Код:
if(PlayerInfo[playerid][pLevel] <= 3)
{
    SendClientMessage(playerid, COLOR_BLUE, "[Tutorial] Ovaj tutorial ce da traje do vaseg 3 levela! ");
    SendClientMessage(playerid, COLOR_BLUE, "[Tutorial] Nemate posao idite u opstinu zaposlite se ! ");
    SendClientMessage(playerid, COLOR_BLUE, "[Tutorial] Uvek postujte jace igrace od sebe! ");
    SendClientMessage(playerid, COLOR_BLUE, "[Tutorial] Za pomoc obratite se na /askq!");
}
SetTimer("Tutorial", 30000, 1);



Re: Tut msgs - Dusan01 - 24.10.2012

Hmm againg errors:

errors:
Код:
gamemodes\BE x12 edit by Stega.pwn(539) : error 001: expected token: ";", but found "("
gamemodes\BE x12 edit by Stega.pwn(547) : error 010: invalid function or declaration
lines:

Код:
line 539: if(PlayerInfo[playerid][pLevel] <= 3)// I added <
Код:
line 547:     return 1;



Re: Tut msgs - HyDrAtIc - 24.10.2012

Код:
if(PlayerInfo[playerid][pLevel] > 3)