omg? - 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: omg? (
/showthread.php?tid=102712)
omg? -
PANNA - 16.10.2009
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/da", cmdtext, true) == 0)
{
SendClientMessage(playerid, 0xFF6600AA, "Desert Airstip");
SetPlayerPos(playerid, 430.7528, 2504.6919, 16.4844);
SetPlayerInterior(playerid, 0);
return 1;
}
if(strcmp("/teles", cmdtext, true) == 0)
{
SendClientMessage(playerid, 0xFF6600AA, "/da - /lvair");
return 1;
}
if(strcmp("/lvair", cmdtext, true) == 0)
{
SendClientMessage(playerid, 0xFF6600AA, "Las Venturas Airport");
SetPlayerPos(playerid, 1319.0171, 1251.5916, 10.8203);
SetPlayerInterior(playerid, 0);
return 1;
}
return 0;
}
130 if(strcmp("/help", cmdtext, true 5) == 0)
{
SendClientMessage(playerid, 0xFF6600AA, "Ultimate-Killing is a server with 3 teams/gans, Los Santos, San Fierro and Las Venturas.format teleports type /teles, for the rules type /rules.");
133 return 1;
}
thats the code,
and here are the errors,
C:\Users\Onno\Documents\da\gamemodes\saa.pwn(130) : error 010: invalid function or declaration
C:\Users\Onno\Documents\da\gamemodes\saa.pwn(133) : error 010: invalid function or declaration
Re: omg? -
Peter_Corneile - 16.10.2009
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/da", cmdtext, true) == 0)
{
SendClientMessage(playerid, 0xFF6600AA, "Desert Airstip");
SetPlayerPos(playerid, 430.7528, 2504.6919, 16.4844);
SetPlayerInterior(playerid, 0);
return 1;
}
if(strcmp("/teles", cmdtext, true) == 0)
{
SendClientMessage(playerid, 0xFF6600AA, "/da - /lvair");
return 1;
}
if(strcmp("/lvair", cmdtext, true) == 0)
{
SendClientMessage(playerid, 0xFF6600AA, "Las Venturas Airport");
SetPlayerPos(playerid, 1319.0171, 1251.5916, 10.8203);
SetPlayerInterior(playerid, 0);
return 1;
}
if(strcmp("/help", cmdtext, true 5) == 0)
{
SendClientMessage(playerid, 0xFF6600AA, "Ultimate-Killing is a server with 3 teams/gans, Los Santos, San Fierro and Las Venturas.format teleports type /teles, for the rules type /rules.");
return 1;
}
return 0;
}
Try this , it should work