Please Help! - 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: Please Help! (
/showthread.php?tid=163406)
Please Help! -
soulas85 - 27.07.2010
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!
Re: Please Help! -
Yamoo - 27.07.2010
Try this:
Код:
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.
Re: Please Help! -
soulas85 - 27.07.2010
same error's
Re: Please Help! -
Yamoo - 27.07.2010
Have you tried taking away the "10" in the command line.
Have you checked the lines below it?
Re: Please Help! -
soulas85 - 27.07.2010
look at error's they have no connection with ur message!
http://pastebin.com/hFJ5YDKq full filterscript search for mistakes!
Re: Please Help! -
Yamoo - 27.07.2010
Yes but, errors may not occur on that line but other lines may have that problem..
Okay, i'll look at it.
Re: Please Help! -
Yamoo - 27.07.2010
Код:
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.
Re: Please Help! -
soulas85 - 27.07.2010
ok, just try do it faster
Re: Please Help! -
soulas85 - 27.07.2010
common! where is all good scripters?
Re: Please Help! -
soulas85 - 27.07.2010
does anyone know how to fix this problem?!