Help fast (+REP for helping) - 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: Help fast (+REP for helping) (
/showthread.php?tid=611772)
Help fast (+REP for helping) -
MarkNelson - 10.07.2016
hi samp community and members.
Today i found that error and i don't know how to fix it. So can you help me please..
here is codes
Код:
C:\Users\infogenie\Desktop\Addictive Trainers 2.5.4\gamemodes\own.pwn(1542) : error 029: invalid expression, assumed zero
Код:
CMD:l(playerid, params[])
{
if (isnull(params)) return SendClientMessage(playerid, -1, "{C0C0C0}USAGE: /b < message >");
new Float:X, Float:Y, Float:Z, String[128], Name[25];
GetPlayerPos(playerid, X, Y, Z);
GetPlayerName(playerid, Name, 25);
format(String, 128, " [%d] %s: %s ", playerid, Name, params);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerInRangeOfPoint(i, X, Y, Z,))
{
SendClientMessage(playerid, 0xC0C0C0FF, String);
}
}
return true;
}
line 1542 is the
if (IsPlayerInRangeOfPoint(i, X, Y, Z,)) help me please !
Re: Help fast (+REP for helping) -
MarkNelson - 10.07.2016
HELP!
Re: Help fast (+REP for helping) -
AliDollar - 10.07.2016
Код:
CMD:l(playerid, params[])
{
if (isnull(params)) return SendClientMessage(playerid, -1, "{C0C0C0}USAGE: /b < message >");
new Float:X, Float:Y, Float:Z, String[128], Name[25];
GetPlayerPos(playerid, X, Y, Z);
GetPlayerName(playerid, Name, 25);
format(String, 128, " [%d] %s: %s ", playerid, Name, params);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerInRangeOfPoint(i,15.0,x,y,z))
{
SendClientMessage(playerid, 0xC0C0C0FF, String);
}
}
return true;
}
Re: Help fast (+REP for helping) -
MarkNelson - 10.07.2016
thanks take your reputation. enjoy
Re: Help fast (+REP for helping) - WhiteGhost - 10.07.2016
Btw,isnt this a error not a pawno error a usage error
Код:
CMD:l(playerid, params[])
{
if (isnull(params)) return SendClientMessage(playerid, -1, "{C0C0C0}USAGE: /b < message >");