Ginciuxzs

Reik pagalbos del sms sistemos

Recommended Posts


imta iš grp modo:

if(!strcmp(cmdtext,"/sms",true,4))
{
	if(cmdtext[4]==0) {SendClientMessage(playerid, COLOR, "* Parasyti trumpaja zinute: /sms [dalis_vardo] [tekstas]"); return 1;}

       new vardas[MAX_PLAYER_NAME],vardas2[MAX_PLAYER_NAME],text[128];
       strmid(vardas,GetArgument(1, cmdtext,0),0,MAX_PLAYER_NAME);

	if(!strcmp(vardas,"necrotel",true))
       {
        new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof(name));

        strmid(text,GetArgument(2, cmdtext,true),0,sizeof(text));

		if(!strcmp(text,"0",true))
		{
	 			SendClientMessage(playerid, COLOR, "* Zinutes be teksto issiusti negalima.");
			return 1;
		}

        SetTimerEx("SMSsystem",(1+random(4))*1000,false,"is",playerid,text);
		SendSMS(INVALID_PLAYER_ID,name,"NecroTel",text,playerid);
		return 1;
	}

	if(playerDB[playerid][mobsas] < 2)
	{
		SendClientMessage(playerid,COLOR,"* Jums nepakanka saskaitos: rasykite sms: /sms necrotel info");
		return 1;
	}

       new recieverid = GetPlayeridMid(vardas);

       if(recieverid == INVALID_PLAYER_ID)
       {
           SendClientMessage(playerid, COLOR, "* Tokio zaidejo nera.");
		return 1;
	}

	strmid(text,GetArgument(2, cmdtext,true),0,sizeof(text));

	if(!strcmp(text,"0",true))
	{
	    SendClientMessage(playerid, COLOR, "* Zinutes be teksto issiusti negalima.");
		return 1;
	}

  		GetPlayerName(playerid,vardas2,sizeof(vardas2));
	GetPlayerName(recieverid,vardas,sizeof(vardas));

	playerDB[playerid][mobsas]-=2;

	SendSMS(recieverid,vardas2,vardas,text,playerid);
	return 1;
}

pasikoreguosi, ko tau reikia ir ko nereikia

Dalintis ┼í─» prane┼íim─ů


Nuoroda iki šio pranešimo
Dalintis per kit─ů puslap─»

Error'us meta

C:\Documents and Settings\Kompaz\Desktop\sms.pwn(9) : error 017: undefined symbol "COLOR"

C:\Documents and Settings\Kompaz\Desktop\sms.pwn(11) : warning 217: loose indentation

C:\Documents and Settings\Kompaz\Desktop\sms.pwn(12) : error 017: undefined symbol "GetArgument"

C:\Documents and Settings\Kompaz\Desktop\sms.pwn(14) : warning 217: loose indentation

C:\Documents and Settings\Kompaz\Desktop\sms.pwn(18) : error 017: undefined symbol "GetArgument"

C:\Documents and Settings\Kompaz\Desktop\sms.pwn(18) : error 035: argument type mismatch (argument 2)

C:\Documents and Settings\Kompaz\Desktop\sms.pwn(20) : warning 217: loose indentation

C:\Documents and Settings\Kompaz\Desktop\sms.pwn(22) : error 017: undefined symbol "COLOR"

C:\Documents and Settings\Kompaz\Desktop\sms.pwn(23) : warning 217: loose indentation

C:\Documents and Settings\Kompaz\Desktop\sms.pwn(26) : warning 217: loose indentation

C:\Documents and Settings\Kompaz\Desktop\sms.pwn(27) : warning 217: loose indentation

C:\Documents and Settings\Kompaz\Desktop\sms.pwn(27) : error 017: undefined symbol "SendSMS"

C:\Documents and Settings\Kompaz\Desktop\sms.pwn(31) : error 017: undefined symbol "playerDB"

C:\Documents and Settings\Kompaz\Desktop\sms.pwn(31) : warning 215: expression has no effect

C:\Documents and Settings\Kompaz\Desktop\sms.pwn(31) : error 001: expected token: ";", but found "]"

C:\Documents and Settings\Kompaz\Desktop\sms.pwn(31) : error 029: invalid expression, assumed zero

C:\Documents and Settings\Kompaz\Desktop\sms.pwn(31) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright ┬ę 1997-2006, ITB CompuPhase

10 Errors.

-- Papildyta --

Error'us meta

C:\Documents and Settings\Kompaz\Desktop\sms.pwn(9) : error 017: undefined symbol "COLOR"

C:\Documents and Settings\Kompaz\Desktop\sms.pwn(11) : warning 217: loose indentation

C:\Documents and Settings\Kompaz\Desktop\sms.pwn(12) : error 017: undefined symbol "GetArgument"

C:\Documents and Settings\Kompaz\Desktop\sms.pwn(14) : warning 217: loose indentation

C:\Documents and Settings\Kompaz\Desktop\sms.pwn(18) : error 017: undefined symbol "GetArgument"

C:\Documents and Settings\Kompaz\Desktop\sms.pwn(18) : error 035: argument type mismatch (argument 2)

C:\Documents and Settings\Kompaz\Desktop\sms.pwn(20) : warning 217: loose indentation

C:\Documents and Settings\Kompaz\Desktop\sms.pwn(22) : error 017: undefined symbol "COLOR"

C:\Documents and Settings\Kompaz\Desktop\sms.pwn(23) : warning 217: loose indentation

C:\Documents and Settings\Kompaz\Desktop\sms.pwn(26) : warning 217: loose indentation

C:\Documents and Settings\Kompaz\Desktop\sms.pwn(27) : warning 217: loose indentation

C:\Documents and Settings\Kompaz\Desktop\sms.pwn(27) : error 017: undefined symbol "SendSMS"

C:\Documents and Settings\Kompaz\Desktop\sms.pwn(31) : error 017: undefined symbol "playerDB"

C:\Documents and Settings\Kompaz\Desktop\sms.pwn(31) : warning 215: expression has no effect

C:\Documents and Settings\Kompaz\Desktop\sms.pwn(31) : error 001: expected token: ";", but found "]"

C:\Documents and Settings\Kompaz\Desktop\sms.pwn(31) : error 029: invalid expression, assumed zero

C:\Documents and Settings\Kompaz\Desktop\sms.pwn(31) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright ┬ę 1997-2006, ITB CompuPhase

10 Errors.

Man reikia paprasto sms skripto ne GRP serveriui! reik pvz kad rasai /sms [iDzaidejo] zinute

Dalintis ┼í─» prane┼íim─ů


Nuoroda iki šio pranešimo
Dalintis per kit─ů puslap─»

Prisijungti prie diskusijos

Palikti atsakym─ů galite i┼í karto, o u┼żsiregistruoti v─Śliau. Jeigu jau turite paskyr─ů m┼źs┼│ forume, Prisijunkite.

Sve─Źias
Atsakyti šioje temoje...

×   ─«klijuotas tekstas turi teksto formatavim─ů.   Pa┼íalinti teksto formatavim─ů

  Galimi tik 75 veidukai.

×   Nuoroda buvo automati┼íkai ─»terpta.   ─«terpti nuorod─ů paprastai

×   J┼źs┼│ ankstesnis prane┼íimas buvo atkurtas.   I┼ívalyti redaktori┼│

×   J┼źs negalite ─»kelti nuotraukas tiesiogiai.─«kelkite arba ─»d─Śkite nuotraukas i┼í URL.


  • ┼áiame puslapyje nar┼ío:   0 nariai

    N─Śra registruot┼│ nari┼│ per┼żi┼źrin─Źi┼│ ┼í─» forum─ů.