SA-MP Forums Archive
Help urgent please!!!! - 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)
+--- Thread: Help urgent please!!!! (/showthread.php?tid=392530)



Help urgent please!!!! - ShakyShadow4Ever - 14.11.2012

0.Sorry FOR 2X POST!
1.I don't use zcmd.
2.I use strmp ( or strcmp , whatever )
3.Please help!
4.Yes i got the plugins sscanf and streamer!
Hello to everyone!
Every gamemode i try to use ,even the defaults from sa-mp.com
When i type a freaking command (ex: /help) or anything it just doesn't shows NOTHING up.
Help me please , what should i do?
+REP IF UU HELP ME!


Re: Help urgent please!!!! - Vicinity - 14.11.2012

We need the following..

Codes and Screenshots to help you.


Re: Help urgent please!!!! - ShakyShadow4Ever - 14.11.2012

Code:
http://pastebin.com/57Jr72ED
Screenshots:
http://imgur.com/a/yjaAx


Re: Help urgent please!!!! - Vicinity - 14.11.2012

The error is on the return 0;.


Re: Help urgent please!!!! - ShakyShadow4Ever - 14.11.2012

Quote:
Originally Posted by Vicinity
Посмотреть сообщение
The error is on the return 0;.
Trying to remove return 0; now
So... let's see..
Nope... xD look now if i remove this:
Код:
D:\Jocuri\gta sa\Online\server\gamemodes\RADM.pwn(152) : error 004: function "SendPlayerFormattedText" is not implemented
D:\Jocuri\gta sa\Online\server\gamemodes\RADM.pwn(153) : warning 202: number of arguments does not match definition
D:\Jocuri\gta sa\Online\server\gamemodes\RADM.pwn(154) : warning 202: number of arguments does not match definition
D:\Jocuri\gta sa\Online\server\gamemodes\RADM.pwn(171) : error 079: inconsistent return types (array & non-array)
D:\Jocuri\gta sa\Online\server\gamemodes\RADM.pwn(176) : error 029: invalid expression, assumed zero
D:\Jocuri\gta sa\Online\server\gamemodes\RADM.pwn(176) : error 004: function "OnPlayerSpawn" is not implemented
D:\Jocuri\gta sa\Online\server\gamemodes\RADM.pwn(180) : error 004: function "SetPlayerRandomSpawn" is not implemented
D:\Jocuri\gta sa\Online\server\gamemodes\RADM.pwn(182) : error 079: inconsistent return types (array & non-array)
D:\Jocuri\gta sa\Online\server\gamemodes\RADM.pwn(185) : warning 225: unreachable code
D:\Jocuri\gta sa\Online\server\gamemodes\RADM.pwn(185) : error 029: invalid expression, assumed zero
D:\Jocuri\gta sa\Online\server\gamemodes\RADM.pwn(185) : error 004: function "SetPlayerRandomSpawn" is not implemented
D:\Jocuri\gta sa\Online\server\gamemodes\RADM.pwn(198) : error 079: inconsistent return types (array & non-array)
D:\Jocuri\gta sa\Online\server\gamemodes\RADM.pwn(203) : warning 225: unreachable code
D:\Jocuri\gta sa\Online\server\gamemodes\RADM.pwn(203) : error 029: invalid expression, assumed zero
D:\Jocuri\gta sa\Online\server\gamemodes\RADM.pwn(203) : error 004: function "OnPlayerDeath" is not implemented
D:\Jocuri\gta sa\Online\server\gamemodes\RADM.pwn(206) : error 017: undefined symbol "killerid"
D:\Jocuri\gta sa\Online\server\gamemodes\RADM.pwn(207) : error 017: undefined symbol "reason"
D:\Jocuri\gta sa\Online\server\gamemodes\RADM.pwn(210) : error 017: undefined symbol "killerid"
D:\Jocuri\gta sa\Online\server\gamemodes\RADM.pwn(211) : error 017: undefined symbol "killerid"
D:\Jocuri\gta sa\Online\server\gamemodes\RADM.pwn(214) : error 017: undefined symbol "killerid"
D:\Jocuri\gta sa\Online\server\gamemodes\RADM.pwn(221) : error 079: inconsistent return types (array & non-array)
D:\Jocuri\gta sa\Online\server\gamemodes\RADM.pwn(274) : warning 225: unreachable code
D:\Jocuri\gta sa\Online\server\gamemodes\RADM.pwn(274) : error 029: invalid expression, assumed zero
D:\Jocuri\gta sa\Online\server\gamemodes\RADM.pwn(274) : error 004: function "OnPlayerRequestClass" is not implemented
D:\Jocuri\gta sa\Online\server\gamemodes\RADM.pwn(277) : error 004: function "SetupPlayerForClassSelection" is not implemented
D:\Jocuri\gta sa\Online\server\gamemodes\RADM.pwn(278) : error 079: inconsistent return types (array & non-array)
D:\Jocuri\gta sa\Online\server\gamemodes\RADM.pwn(281) : warning 225: unreachable code
D:\Jocuri\gta sa\Online\server\gamemodes\RADM.pwn(281) : error 029: invalid expression, assumed zero
D:\Jocuri\gta sa\Online\server\gamemodes\RADM.pwn(281) : error 004: function "SetupPlayerForClassSelection" is not implemented
D:\Jocuri\gta sa\Online\server\gamemodes\RADM.pwn(290) : error 029: invalid expression, assumed zero
D:\Jocuri\gta sa\Online\server\gamemodes\RADM.pwn(290) : error 004: function "GameModeExitFunc" is not implemented
D:\Jocuri\gta sa\Online\server\gamemodes\RADM.pwn(295) : error 029: invalid expression, assumed zero

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


26 Errors.



Re: Help urgent please!!!! - Vicinity - 14.11.2012

I'm not trying to sound stupid (I'm new to scripting). Shouldn't you have the return 0; on your very last command before moving onto the next Public?


Re: Help urgent please!!!! - Alex Magaсa - 14.11.2012

PHP код:
  if(!strcmp(cmdtext"/help"true))
    {
        
SendClientMessage(playerid0xFFFFFFFF"SERVER: Nu injurati, Nu cereti admin, Nu injurati.");
        return 
1;
        } 
ZCMD:
PHP код:
#include <zcmd>

CMD:help(playerid,params[])
{
    
SendClientMessage(playerid0xFFFFFFFF"SERVER: Nu injurati, Nu cereti admin, Nu injurati.");
    return 
1;

Cheers. !


Re: Help urgent please!!!! - ShakyShadow4Ever - 15.11.2012

Thank you alex magana for your reply +rep anyways , i will try it now.!

Код:
D:\Jocuri\gta sa\Online\server\gamemodes\RADM.pwn(68) : error 029: invalid expression, assumed zero
D:\Jocuri\gta sa\Online\server\gamemodes\RADM.pwn(68) : error 017: undefined symbol "cmd_help"
D:\Jocuri\gta sa\Online\server\gamemodes\RADM.pwn(68) : error 029: invalid expression, assumed zero
D:\Jocuri\gta sa\Online\server\gamemodes\RADM.pwn(68) : fatal error 107: too many error messages on one line

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


4 Errors.



Re: Help urgent please!!!! - Abreezy - 15.11.2012

You said you use strcmp so use his top code, not the bottom.

pawn Код:
if(!strcmp(cmdtext, "/help", true))
    {
        SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: Nu injurati, Nu cereti admin, Nu injurati.");
        return 1;
        }



Re: Help urgent please!!!! - Xbowman - 15.11.2012

return 1; inside each command, return 0; right be4 u close the function.