error 010: invalid function or declaration - 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: error 010: invalid function or declaration (
/showthread.php?tid=453303)
error 010: invalid function or declaration -
RandomDude - 24.07.2013
pawn Код:
COMMAND:yeye(playerid, arg[])
{
// Get the nearest player first
new nearestplayer = GetNearestPlayer(playerid);
// Make sure the ID is valid
if(nearestplayer != INVALID_PLAYER_ID)
{
// Is the nearest player in wave range?
if(PlayerInRangeOfPlayer(playerid, nearestplayer, 20.0))
{
new line[128];
new name[MAX_PLAYER_NAME];
// Show wave message for player being waved at
GetPlayerName(playerid, name, MAX_PLAYER_NAME);
format(line, sizeof(line), "%s yeye You", name);
SendClientMessage(nearestplayer, 0xFF00FFFF, line);
// Show wave message for playing waving
GetPlayerName(nearestplayer, name, MAX_PLAYER_NAME);
format(line, sizeof(line), "yeye at %s", name);
SendClientMessage(playerid, 0xFF00FFFF, line);
}
new line[128];
new name[MAX_PLAYER_NAME];
new name1[MAX_PLAYER_NAME];
GetPlayerName(playerid, name1, MAX_PLAYER_NAME);
GetPlayerName(nearestplayer, name, MAX_PLAYER_NAME);
format(line, sizeof(line), "*%s yeye'd %s", name,name1);
SendClientMessageToAll(COLOR_RED, line);
}// No one close enough by to wave to
else SendClientMessage(playerid, 0xFF00FFFF, "There is no one around you");
}
// No one was online when you tried to wave
else SendClientMessage(playerid, 0xFF00FFFF, "There is no one around you");
return 1;
}
Код:
C:\Users\Grand\Desktop\Ultimate Gaming Ground\gamemodes\STUNTS.pwn(944) : error 010: invalid function or declaration
C:\Users\Grand\Desktop\Ultimate Gaming Ground\gamemodes\STUNTS.pwn(945) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
Re: error 010: invalid function or declaration -
Twizted - 24.07.2013
Which of these lines are 944 and 945?
Re: error 010: invalid function or declaration -
RandomDude - 24.07.2013
Ops
pawn Код:
else SendClientMessage(playerid, 0xFF00FFFF, "There is no one around you");
return 1;
944 AND 945
Re: error 010: invalid function or declaration -
Red_Dragon. - 24.07.2013
There's a closing brace which doesn't have an opening one.
Re: error 010: invalid function or declaration -
RandomDude - 24.07.2013
Quote:
Originally Posted by Red_Dragon.
There's a closing brace which doesn't have an opening one.
|
Thank you