Please Help!
#1

Hi! I downloaded SPAWN script, my admin system is different from it's

Script:
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	new cmd[200], idx;
	cmd = strtok(cmdtext, idx);

	if(strcmp(cmd, "/spawn", true, 10) == 0)
	{
		if(IsPlayerAdmin(playerid) == 1) return SendClientMessage(playerid, l_red, "Tu nesi Administratorius");
If i try to change it to mine Admin system:
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	new cmd[200], idx;
	cmd = strtok(cmdtext, idx);

	if(strcmp(cmd, "/spawn", true, 10) == 0)
	{
		if(playerDB[playerid][admin] == 1) return SendClientMessage(playerid, l_red, "Tu nesi Administratorius");
I'm getting these error's:
Код:
C:\Users\Slashas94\Desktop\samp03\filterscripts\spawn.pwn(234) : error 017: undefined symbol "playerDB"
C:\Users\Slashas94\Desktop\samp03\filterscripts\spawn.pwn(234) : warning 215: expression has no effect
C:\Users\Slashas94\Desktop\samp03\filterscripts\spawn.pwn(234) : error 001: expected token: ";", but found "]"
C:\Users\Slashas94\Desktop\samp03\filterscripts\spawn.pwn(234) : error 029: invalid expression, assumed zero
C:\Users\Slashas94\Desktop\samp03\filterscripts\spawn.pwn(234) : fatal error 107: too many error messages on one line
Please help me to solve this problem!
Reply
#2

Try this:

Код:
 new playerDB
Код:
 if(playerDB[playerid][admin] == 1)
     SendClientMessage(playerid, l_red, "Tu nesi Administratorius");
   }
It may work it may not, i'm busy playing the xbox to.
Reply
#3

same error's
Reply
#4

Have you tried taking away the "10" in the command line.

Have you checked the lines below it?
Reply
#5

look at error's they have no connection with ur message!
http://pastebin.com/hFJ5YDKq full filterscript search for mistakes!
Reply
#6

Yes but, errors may not occur on that line but other lines may have that problem..

Okay, i'll look at it.
Reply
#7

Код:
 if(strcmp(cmd, "/spawn", true) == 0)
 233.
              {
 234.
                      if(playerDB[playerid][admin] == 1)
		      SendClientMessage(playerid, l_red, "Tu nesi Administratorius");
 235.           		return 0;
         }
 236.

 237.
                      new String[200];
 238.
                      new tmp[256];
 239.
                      new Float:x, Float:y, Float:z;
 240.
                      forward playerDB
It kept crashing me, but i personaly see nothing wrong or it's the lack of concetration at this minute of time.
Reply
#8

ok, just try do it faster
Reply
#9

common! where is all good scripters?
Reply
#10

does anyone know how to fix this problem?!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)