SA-MP Forums Archive
Need a help.................urgent.....!!! - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Need a help.................urgent.....!!! (/showthread.php?tid=252829)



Need a help.................urgent.....!!! - Ronaldo_raul™ - 03.05.2011

when i added some lines to the tele section ...so when a player types /tele he can see the tele so when i added some more tele to this cmd and compiled it i got some warnings.....................help me out...........


Код:
E:\vyom\My Pen Drive\GTA San Andreas\my new stunt server(upgraded)\gamemodes\freeroam.pwn(4900) : warning 202: number of arguments does not match definition
E:\vyom\My Pen Drive\GTA San Andreas\my new stunt server(upgraded)\gamemodes\freeroam.pwn(4901) : warning 202: number of arguments does not match definition
E:\vyom\My Pen Drive\GTA San Andreas\my new stunt server(upgraded)\gamemodes\freeroam.pwn(4902) : warning 202: number of arguments does not match definition
E:\vyom\My Pen Drive\GTA San Andreas\my new stunt server(upgraded)\gamemodes\freeroam.pwn(4903) : warning 202: number of arguments does not match definition
E:\vyom\My Pen Drive\GTA San Andreas\my new stunt server(upgraded)\gamemodes\freeroam.pwn(4904) : warning 202: number of arguments does not match definition
E:\vyom\My Pen Drive\GTA San Andreas\my new stunt server(upgraded)\gamemodes\freeroam.pwn(4905) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Warnings.

can anyone fix this.............


Re: Need a help.................urgent.....!!! - Vero - 03.05.2011

Can we see the code and can you mark which lines have the warnings?


Re: Need a help.................urgent.....!!! - Venice - 03.05.2011

Post The Warning line


Re: Need a help.................urgent.....!!! - Ronaldo_raul™ - 03.05.2011

Quote:
Originally Posted by Vero
Посмотреть сообщение
Can we see the code and can you mark which lines have the warnings?
ofcourse...............this are the lines i added

Код:
dcmd_tele(playerid, params[]) {
	#pragma unused params
	SendClientMessageLang(playerid, COLOR_WHITE,"************HELP***************************************************************","************POMOC*************************************************************");
	SendClientMessageLang(playerid, 0xD0251CDF,"Teleports:","Teleporty:");
    SendClientMessageLang(playerid, 0x00A4F299," /chilliad /bigjump /hydra /at-400 /basejump /andromada /drag /jetmax"," /chilliad /bigjump /hydra /at-400 /basejump /andromada /wyscig /jetmax");
    SendClientMessageLang(playerid, 0x00A4F299," /lc /tuning [1-3] /derby /drift [1-3] /airport /skatepark /dm [1-2] /tube"," /lc /tuning [1-3] /derby /drift [1-3] /lotnisko /skatepark /dm [1-2] /rura");
    SendClientMessageLang(playerid, 0x00A4F299," /solo [1-2] /tram /train /stunt-park /skroad /bigramp /jump /cr /armydm"," /solo [1-2] /tram /pociag /stunt-park /skroad /bigramp /jump /cr /armydm");
    SendClientMessageLang(playerid, 0x00A4F299," /drift2 /bmx /cj1 /ij /lsj1 /lvj1 /lvj3 /sfj1 /pipe2 /aa /wang /andromada /shamel /hj /bj /pj");
    SendClientMessageLang(playerid, 0x00A4F299," /omg /mc /rmc /dam /teepee /sniper /bowl /atlantis /quarry /ls /lsa /skate /lsbeach /vw /lva /pyr");
    SendClientMessageLang(playerid, 0x00A4F299," /pship /lv /shitlake /sj /cs /tr /wj /police /docks /predator /pipe /dj /sfs /spray /bomb /bikes");
    SendClientMessageLang(playerid, 0x00A4F299," /dilli /drag /drag2 /drag3 /drift /drift3 /pk1 /pk2 /pk3 /sfa/ship /studio /tflv /tfls /tfsf /golf");
    SendClientMessageLang(playerid, 0x00A4F299," /ee /jetmax /bmx /bmx2 /loco /arch /area69 /ds /loop /sfp /aqua /monster /sex /burger /derby /derby2");
    SendClientMessageLang(playerid, 0x00A4F299," /md /ctd /sclub /dclub /stadium1 /whetstone /dt /shop /fs /dive /minigun /sf /lc /dildo /stadium /bulletshop");
	return 1;
}


and the lined by default were..........

Код:
dcmd_tele(playerid, params[]) {
	#pragma unused params
	SendClientMessageLang(playerid, COLOR_WHITE,"************HELP***************************************************************","************POMOC*************************************************************");
	SendClientMessageLang(playerid, 0xD0251CDF,"Teleports:","Teleporty:");
    SendClientMessageLang(playerid, 0x00A4F299," /chilliad /bigjump /hydra /at-400 /basejump /andromada /drag /jetmax"," /chilliad /bigjump /hydra /at-400 /basejump /andromada /wyscig /jetmax");
    SendClientMessageLang(playerid, 0x00A4F299," /lc /tuning [1-3] /derby /drift [1-3] /airport /skatepark /dm [1-2] /tube"," /lc /tuning [1-3] /derby /drift [1-3] /lotnisko /skatepark /dm [1-2] /rura");
    SendClientMessageLang(playerid, 0x00A4F299," /solo [1-2] /tram /train /stunt-park /skroad /bigramp /jump /cr /armydm"," /solo [1-2] /tram /pociag /stunt-park /skroad /bigramp /jump /cr /armydm");
just added 6 lines................


plz help....!!!


Re: Need a help.................urgent.....!!! - Calgon - 03.05.2011

Your problem is that you can only send one client message per line, you can't add quotation marks to the exact same function, you have to call it again.

pawn Код:
SendClientMessage(playerid, 0x00A4F299, "/chilliad /bigjump /hydra /at-400 /basejump /andromada /drag /jetmax");
...then you have to call it again.


Re: Need a help.................urgent.....!!! - Ronaldo_raul™ - 03.05.2011

Quote:
Originally Posted by Calg00ne
Посмотреть сообщение
Your problem is that you can only send one client message per line, you can't add quotation marks to the exact same function, you have to call it again.

pawn Код:
SendClientMessage(playerid, 0x00A4F299, "/chilliad /bigjump /hydra /at-400 /basejump /andromada /drag /jetmax");
...then you have to call it again.
Didn't got what you mean ........can you explain how can i fix it............?
THANK YOU !!!!!


Re: Need a help.................urgent.....!!! - [SFA]SpiRRiT - 03.05.2011

Try to follow them next time,

Код:
RULES

a) Use a proper subject
Something like ------------>HELP PLZ FAST NOW HELP!!!!!!!!!!!<---------- is not very descriptive and very annoying.
Make a proper subject with a short description, such as 'Gates won't open' or 'Game crashes instantly'..
and uhh, this is I think your problem,
Код:
SendClientMessageLang
..
SendClientMessageLang doesn't excist, unless you've defined it..
But it should be SendClientMessage, without the Lang..


Re: Need a help.................urgent.....!!! - Ronaldo_raul™ - 03.05.2011

Quote:
Originally Posted by [SFA]SpiRRiT
Посмотреть сообщение
Try to follow them next time,

Код:
RULES

a) Use a proper subject
Something like ------------>HELP PLZ FAST NOW HELP!!!!!!!!!!!<---------- is not very descriptive and very annoying.
Make a proper subject with a short description, such as 'Gates won't open' or 'Game crashes instantly'..
and uhh, this is I think your problem,
Код:
SendClientMessageLang
..
SendClientMessageLang doesn't excist, unless you've defined it..
But it should be SendClientMessage, without the Lang..
Ahhhh.......sorry for that ...............thank you for your suggestion ...........and thank you all because the problem is solved !!!!.......thank you all of you........


Regards
Ronaldo_raul


Re: Need a help.................urgent.....!!! - [SFA]SpiRRiT - 03.05.2011

Quote:
Originally Posted by ronaldoraul
Посмотреть сообщение
Ahhhh.......sorry for that ...............thank you for your suggestion ...........and thank you all because the problem is solved !!!!.......thank you all of you........


Regards
Ronaldo_raul
Well, did my reply help? Maybe try to explain how you've fixed your problem, because there are probably other people with the same problem..


Re: Need a help.................urgent.....!!! - Ronaldo_raul™ - 03.05.2011

Quote:
Originally Posted by [SFA]SpiRRiT
Посмотреть сообщение
Well, did my reply help? Maybe try to explain how you've fixed your problem, because there are probably other people with the same problem..
ahh ..........ok sir my next post will be with your rules....and plz also see my other post..........

THANK YOU
RESPECT