HELPPPP FASTTTTTTT
#1

Quote:

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/kill", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, 0 );
return 0;
}
return 1;
}
line 178>>>> if (strcmp("/rules", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid,51,DIALOG_STYLE_MSGBOX," {FF0303}Rules:","{1900FF}1.do not insult admins and players\n{1900FF}2.do not use cheats = ban\n3.{1900FF}if u have question ask admins\n{1900FF}4.don't spam and don't advertise other sevrers","OK","Cancel");
LINE 181>>>>return 1;
}

and what is problem help plzz

Quote:

gamemodes\Mojaprvaskripta.pwn(17 : error 010: invalid function or declaration
gamemodes\Mojaprvaskripta.pwn(181) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

Reply
#2

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/kill", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, 0 );
return 0;
}
return 1;
}
if (strcmp("/rules", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid,51,DIALOG_STYLE_MSGBOX," {FF0303}Rules:","{1900FF}1.do not insult admins and players\n{1900FF}2.do not use cheats = ban\n3.{1900FF}if u have question ask admins\n{1900FF}4.don't spam and don't advertise other sevrers","OK","Cancel");
return 1;
}
Reply
#3

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/kill", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, 0 );
return 1;
}

if (strcmp("/rules", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid,51,DIALOG_STYLE_MSGBOX," {FF0303}Rules:","{1900FF}1.do not insult admins and players\n{1900FF}2.do not use cheats = ban\n3.{1900FF}if u have question ask admins\n{1900FF}4.don't spam and don't advertise other sevrers","OK","Cancel");
return 1;}    
return 0;
}
Try this.
Reply
#4

thanks man !!!
Reply
#5

Sure.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)