SA-MP Forums Archive
why do i get errors from this? - 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: why do i get errors from this? (/showthread.php?tid=175721)



why do i get errors from this? - thomas.. - 10.09.2010

pawn Код:
foward restart(playerid);
public restart(playerid)
{
    SendRconCommand(gmx);
}
i shouldnt.. should i?

edit

pawn Код:
public restart(playerid)
{
    SendRconCommand(gmx);
}
undefind symbol: gmx?


Re: why do i get errors from this? - Vince - 10.09.2010

SendRconCommand("gmx"); Notice the quotes.
And you don't use playerid in your function either, so you can remove that as well.


Re: why do i get errors from this? - thomas.. - 10.09.2010

Quote:
Originally Posted by Vince
Посмотреть сообщение
SendRconCommand("gmx"); Notice the quotes.
And you don't use playerid in your function either, so you can remove that as well.
yeah.. i know :3


Re: why do i get errors from this? - iFriSki - 10.09.2010

Quote:
forward restart(playerid);
public restart(playerid)
{
SendRconCommand(gmx);
}

<forum.sa-mp.com>

The message you have entered is too short. Please lengthen your message to at least 8 characters.


Re: why do i get errors from this? - thomas.. - 10.09.2010

Quote:
Originally Posted by iFriSki
Посмотреть сообщение
<forum.sa-mp.com>

The message you have entered is too short. Please lengthen your message to at least 8 characters.
noyou

.