Peršokti į turinį
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į

Komentuoti gali tik prisijungę nariai

Jeigu turite paskyrą, prisijunkite

Sukurti paskyrą

Sukurkite paskyrą mūsų forume

Registruotis

Prisijungti

Turite paskyrą? Prisijunkite

Prisijungti dabar

  • Narių peržiūri šį forumą:   0 nariai

    Nėra registruotų narių peržiūrinčių šį forumą.


  • SuperGames programele
  • SuperGames programele


×