Problem - 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: Problem (
/showthread.php?tid=129547)
Problem -
adytzu32 - 22.02.2010
hi,i have this errors
Код:
D:\Documents and Settings\ady\Desktop\s\gamemodes\WindMania.pwn(30070) : error 010: invalid function or declaration
D:\Documents and Settings\ady\Desktop\s\gamemodes\WindMania.pwn(30072) : error 010: invalid function or declaration
D:\Documents and Settings\ady\Desktop\s\gamemodes\WindMania.pwn(30074) : error 010: invalid function or declaration
D:\Documents and Settings\ady\Desktop\s\gamemodes\WindMania.pwn(30100) : error 010: invalid function or declaration
D:\Documents and Settings\ady\Desktop\s\gamemodes\WindMania.pwn(30102) : error 010: invalid function or declaration
D:\Documents and Settings\ady\Desktop\s\gamemodes\WindMania.pwn(30105) : error 010: invalid function or declaration
D:\Documents and Settings\ady\Desktop\s\gamemodes\WindMania.pwn(30108) : error 010: invalid function or declaration
. the script is :
Код:
//------------------[CC]--------------------------------------
if(strcmp(cmd, "/cc", true) == 0)
{
if(IsPlayerConnected(playerid));
{
if(PlayerInfo[playerid][pAdmin] >= 3)
{
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
GameTextForAll("Chat cleared!", 1000,1);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "You do not have permission to use that command!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "You Must be logged in to use this command!");
}
}
Re: Problem - lameguy - 22.02.2010
Which lines causes the errors?
Re: Problem -
adytzu32 - 22.02.2010
the errors come fromt that /cc command.something isn't good with that command
Re: Problem -
Rzzr - 22.02.2010
pawn Код:
//------------------[CC]--------------------------------------
if(strcmp(cmd, "/cc", true) == 0)
{
if(IsPlayerConnected(playerid)) // Removed the ; here
{
if(PlayerInfo[playerid][pAdmin] >= 3)
{
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
SendClientMessageToAll(COLOR_GREEN, " ");
GameTextForAll("Chat cleared!", 1000,1);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED, "You do not have permission to use that command!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_RED, "You Must be logged in to use this command!");
}
}
Well that's atleast 1 thing I saw.
Re: Problem -
adytzu32 - 22.02.2010
Код:
D:\Documents and Settings\ady\Desktop\s\gamemodes\WindMania.pwn(30070) : error 010: invalid function or declaration
D:\Documents and Settings\ady\Desktop\s\gamemodes\WindMania.pwn(30072) : error 010: invalid function or declaration
D:\Documents and Settings\ady\Desktop\s\gamemodes\WindMania.pwn(30074) : error 010: invalid function or declaration
D:\Documents and Settings\ady\Desktop\s\gamemodes\WindMania.pwn(30100) : error 010: invalid function or declaration
D:\Documents and Settings\ady\Desktop\s\gamemodes\WindMania.pwn(30102) : error 010: invalid function or declaration
D:\Documents and Settings\ady\Desktop\s\gamemodes\WindMania.pwn(30105) : error 010: invalid function or declaration
D:\Documents and Settings\ady\Desktop\s\gamemodes\WindMania.pwn(30108) : error 010: invalid function or declaration
Re: Problem -
Rzzr - 22.02.2010
Can you copy line 30070?
Re: Problem -
adytzu32 - 22.02.2010
Код:
if(strcmp(cmd, "/cc", true) == 0)
Re: Problem -
adytzu32 - 22.02.2010
solved
Re: Problem -
IJzerenRita - 22.02.2010
My guess is that you did not enclose this piece of code with
the appropriate callback.