I got a Problem with adding a Map into my GM - 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: I got a Problem with adding a Map into my GM (
/showthread.php?tid=249218)
I got a Problem with adding a Map into my GM -
ElieJabbour - 17.04.2011
Look :
Re: I got a Problem with adding a Map into my GM -
Stigg - 17.04.2011
There only indentation warnings.
https://sampwiki.blast.hk/wiki/Errors_List
Re: I got a Problem with adding a Map into my GM -
ElieJabbour - 17.04.2011
Oh.. i added the map anyway, (DOWNLOADED) But how can i know where is it from, Plus i got this
Код:
if(strcmp(cmd, "/prison", true) == 0)
{
SetPlayerPos(playerid, 1779.3185,-1576.1315,1734.9430);
SendClientMessage(playerid, COLOR_WHITE, "You have been teleported to the prison!");
return 1;
i need to add it, where do i add this ?
Re: I got a Problem with adding a Map into my GM -
Stigg - 17.04.2011
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmd, "/prison", true) == 0)
{
SetPlayerPos(playerid, 1779.3185,-1576.1315,1734.9430);
SendClientMessage(playerid, COLOR_WHITE, "You have been teleported to the prison!");
return 1;
}
return 0;
}
Re: I got a Problem with adding a Map into my GM -
ElieJabbour - 17.04.2011
Ye i get it, but under what should i add it in the GM ?
Re: I got a Problem with adding a Map into my GM -
Jeffry - 17.04.2011
At TOP of your code will
ignore the warning.
Re: I got a Problem with adding a Map into my GM -
iJumbo - 17.04.2011
This
pawn Код:
if(strcmp(cmd, "/prison", true) == 0)
{
SetPlayerPos(playerid, 1779.3185,-1576.1315,1734.9430);
SendClientMessage(playerid, COLOR_WHITE, "You have been teleported to the prison!");
return 1;
}
under this
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
return 0;
}
so
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmd, "/prison", true) == 0)
{
SetPlayerPos(playerid, 1779.3185,-1576.1315,1734.9430);
SendClientMessage(playerid, COLOR_WHITE, "You have been teleported to the prison!");
return 1;
}
return 0;
}
Re: I got a Problem with adding a Map into my GM -
Stigg - 17.04.2011
Quote:
Originally Posted by ElieJabbour
Ye i get it, but under what should i add it in the GM ?
|
Under:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
With your others cmd's.
Re: I got a Problem with adding a Map into my GM -
Stigg - 17.04.2011
Quote:
Originally Posted by Jeffry
At TOP of your code will ignore the warning.
|
Which is bad practise. Just my opinion.
Re: I got a Problem with adding a Map into my GM -
iJumbo - 17.04.2011
Quote:
Originally Posted by Stigg
Which is bad practise. Just my opinion.
|
yes they have to learn how to use TAB