Whats the problem coming???Why can't I run this
#1

if(strcmp(cmdtext,"/staff",true)== 0)
{
SendClientMessage(playerid,0xFFFFFFFF,"--------------------- Staff Team ----------------------");
SendClientMessage(playerid,0xFF0000FF,"-- Server Owner : Trey");
SendClientMessage(playerid,0xFF0000FF,"-- Server Scripter : Somil, Wraith and try");
SendClientMessage(playerid,0xFF0000FF,"-- Server Co-owner : Wraith");
SendClientMessage(playerid,0xFF0000FF,"-- Server Life Time Excutive admin: Somil");
SendClientMessage(playerid,0xFF0000FF,"-- Server Lead Head Admin: BurnKiller");
SendClientMessage(playerid,0xFF0000FF,"-- Server Head Admin: KeweJr");
SendClientMessage(playerid,0xFF0000FF,"-- Server Senior Admin : Vacant");
SendClientMessage(playerid,0xFF0000FF,"-- Server General Admin : Vacant");
SendClientMessage(playerid,0xFF0000FF,"-- Server Junior Admin : Vacant");
SendClientMessage(playerid,0xFFFFFFFF,"-----------------------------------------------------");
return 1;
}
Reply
#2

Atleast show the warnings/errors you receive..
Reply
#3

C:\Users\Vijay\Desktop\Cool filterscripts\Staff team script.pwn(1) : error 010: invalid function or declaration
C:\Users\Vijay\Desktop\Cool filterscripts\Staff team script.pwn(3) : error 010: invalid function or declaration
C:\Users\Vijay\Desktop\Cool filterscripts\Staff team script.pwn(6) : error 010: invalid function or declaration
C:\Users\Vijay\Desktop\Cool filterscripts\Staff team script.pwn(11) : error 010: invalid function or declaration
C:\Users\Vijay\Desktop\Cool filterscripts\Staff team script.pwn(14) : error 010: invalid function or declaration
C:\Users\Vijay\Desktop\Cool filterscripts\Staff team script.pwn(15) : error 010: invalid function or declaration
C:\Users\Vijay\Desktop\Cool filterscripts\Staff team script.pwn(16) : error 010: invalid function or declaration
C:\Users\Vijay\Desktop\Cool filterscripts\Staff team script.pwn(17) : error 010: invalid function or declaration
C:\Users\Vijay\Desktop\Cool filterscripts\Staff team script.pwn(1 : error 010: invalid function or declaration
C:\Users\Vijay\Desktop\Cool filterscripts\Staff team script.pwn(19) : error 010: invalid function or declaration
C:\Users\Vijay\Desktop\Cool filterscripts\Staff team script.pwn(20) : error 010: invalid function or declaration
C:\Users\Vijay\Desktop\Cool filterscripts\Staff team script.pwn(21) : error 010: invalid function or declaration
C:\Users\Vijay\Desktop\Cool filterscripts\Staff team script.pwn(22) : error 010: invalid function or declaration
C:\Users\Vijay\Desktop\Cool filterscripts\Staff team script.pwn(23) : error 010: invalid function or declaration
C:\Users\Vijay\Desktop\Cool filterscripts\Staff team script.pwn(24) : error 010: invalid function or declaration
C:\Users\Vijay\Desktop\Cool filterscripts\Staff team script.pwn(2 : error 010: invalid function or declaration
C:\Users\Vijay\Desktop\Cool filterscripts\Staff team script.pwn(36) : error 013: no entry point (no public functions)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


17 Errors.
Reply
#4

Can you put your code into this balise please:
[code] [/code.] (w/o the . )
Do you have this at the top of your script?
PHP Code:
#include <a_samp> 
Reply
#5

Quote:
Originally Posted by Dayrion
View Post
Can you put your code into this balise please:
[code] [/code.] (w/o the . )
Do you have this at the top of your script?
PHP Code:
#include <a_samp> 
Yes , Check you have | #include <a_samp> | in the top of your script , i tested it on my script , no 1 error.
Reply
#6

C:\Users\Vijay\Desktop\Cool filterscripts\Staff team script.pwn(3) : error 010: invalid function or declaration
C:\Users\Vijay\Desktop\Cool filterscripts\Staff team script.pwn(16) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

2 errors left
Reply
#7

Show us lines 3 and 16.
Reply
#8

Quote:

According to this error

C:\Users\Vijay\Desktop\Cool filterscripts\Staff team script.pwn(2) : error 010: invalid function or declaration
C:\Users\Vijay\Desktop\Cool filterscripts\Staff team script.pwn(15) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

15 and 2 lines are


Quote:

return 1;

15

Quote:

if(strcmp(cmdtext,"/staff",true)== 0)

second

Reply
#9

Tell me fast
Reply
#10

is it under

public OnPlayerCommandText(playerid, cmdtext[])
{
{

}

?
Reply
#11

That block of code should go under https://sampwiki.blast.hk/wiki/OnPlayerCommandText
Reply
#12

What do u mean
Reply
#13

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
 if(
strcmp(cmdtext,"/staff",true))
  {
    
SendClientMessage(playerid,0xFFFFFFFF,"--------------------- Staff Team ----------------------");
    
SendClientMessage(playerid,0xFF0000FF,"-- Server Owner : Trey");
    
SendClientMessage(playerid,0xFF0000FF,"-- Server Scripter : Somil, Wraith and try");
    
SendClientMessage(playerid,0xFF0000FF,"-- Server Co-owner : Wraith");
    
SendClientMessage(playerid,0xFF0000FF,"-- Server Life Time Excutive admin: Somil");
    
SendClientMessage(playerid,0xFF0000FF,"-- Server Lead Head Admin: BurnKiller");
    
SendClientMessage(playerid,0xFF0000FF,"-- Server Head Admin: KeweJr");
    
SendClientMessage(playerid,0xFF0000FF,"-- Server Senior Admin : Vacant");
    
SendClientMessage(playerid,0xFF0000FF,"-- Server General Admin : Vacant");
    
SendClientMessage(playerid,0xFF0000FF,"-- Server Junior Admin : Vacant");
    
SendClientMessage(playerid,0xFFFFFFFF,"-----------------------------------------------------");
   return 
1;
  }
    return 
0;

Reply
#14

C:\Users\Vijay\Desktop\Cool filterscripts\Staff team script.pwn(3) : warning 235: public function lacks forward declaration (symbol "OnPlayerCommandReceived")
C:\Users\Vijay\Desktop\Cool filterscripts\Staff team script.pwn(5) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#15

Read Above ^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)