Please Help ME T-T +1 Rep If You Helped
#1

why i i making too many errors or warning hhh..
help me i have problems again
he wants me to put return 1; in the line but he gave me warnings what you want sh*t pawon

Код:
public OnPlayerText(playerid, text[])
{
   if(strfind(text, "*999#", true))
   {
		if(MegangHP[playerid] == 1) return SCM(playerid, 0xFFFFFFFF, "Lu Gak Megang HP Lu Pengen Dafter Apa Dafter Ke Supermarket Apah");
		{
           ShowPlayerDialog(playerid,PAKET_TELKOMSEL,DIALOG_STYLE_LIST,"Paket Telkomsel","1. 2GB + 1GB 4G + 3 GB MDS (Rp. 70.000,00-,)\n2. 2GB + 2GB 4G + 3GB MDS(Rp. 90.000,00-,)\n3. 4GB + 3GB + 2GB MDS(Rp. 140.000,00-,)","Lanjut","Keluar");
        }
    }
	return 1; //warning here he want me place return here
}
Код:
C:\SA-MPServer\Indonesian XpertS Gaming Test\filterscripts\TelkomselHP(IND).pwn(50) : warning 217: loose indentation
Reply
#2

replace
PHP код:
TextDrawHideForPlayer(playeridTextdraw0[playerid]); // error 
with
PHP код:
TextDrawHideForPlayer(playeridTextdraw0); 
Reply
#3

Yeah Thanks It WOrks +1 Rep
Reply
#4

Please Help Me On THis New problems
before this i helped to fix textdraw error by pawn hunter
now warning for loose identation
2 errors or warning for this topic
Reply
#5

PHP код:
public OnPlayerText(playeridtext[])
{
   if(
strfind(text"*999#"true))
   {
        if(
MegangHP[playerid] == 1) return SCM(playerid0xFFFFFFFF"Lu Gak Megang HP Lu Pengen Dafter Apa Dafter Ke Supermarket Apah");
        {
           
ShowPlayerDialog(playerid,PAKET_TELKOMSEL,DIALOG_STYLE_LIST,"Paket Telkomsel","1. 2GB + 1GB 4G + 3 GB MDS (Rp. 70.000,00-,)\n2. 2GB + 2GB 4G + 3GB MDS(Rp. 90.000,00-,)\n3. 4GB + 3GB + 2GB MDS(Rp. 140.000,00-,)","Lanjut","Keluar");
        }
    }
   return 
1//warning here he want me place return here

Reply
#6

This is one of the many common errors you can receive, and it's simple to fix.

Read this:

https://sampwiki.blast.hk/wiki/Errors_Li...se_indentation
Reply
#7

thanks jlalt
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)