16.10.2009, 16:02
Quote:
Originally Posted by PANNA
i still get stuck when i want to make a teleport,
i do everything but i still get always 1 or 3 errors here you go Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if(strcmp("/da", cmdtext, true, 3) == 0) { SendClientMessage(playerid, 0xFF6600AA, "Desert Airstip"); SetPlayerPos(playerid, 430.7528, 2504.6919, 16.4844); SetPlayerInterior(playerid, 0); return 1; } if(strcmp("/teles", cmdtext, true, 6) == 0) { SendClientMessage(playerid, 0xFF6600AA, "/da - /lvair"); return 1; } return 0; } if(strcmp("/lvair", cmdtext, true, 6) == 0) { SendClientMessage(playerid, 0xFF6600AA, "Las Venturas Airport"); SetPlayerPos(playerid, 1319.0171, 1251.5916, 10.8203); SetPlayerInterior(playerid, 0); return 1; } C:\Users\Onno\Documents\da\gamemodes\saa.pwn(111) : error 010: invalid function or declaration C:\Users\Onno\Documents\da\gamemodes\saa.pwn(116) : error 010: invalid function or declaration btw, sorry i ask alot but im new to this. |
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/da", cmdtext, true, 3) == 0)
{
SendClientMessage(playerid, 0xFF6600AA, "Desert Airstip");
SetPlayerPos(playerid, 430.7528, 2504.6919, 16.4844);
SetPlayerInterior(playerid, 0);
return 1;
}
if(strcmp("/teles", cmdtext, true, 6) == 0)
{
SendClientMessage(playerid, 0xFF6600AA, "/da - /lvair");
return 1;
}
if(strcmp("/lvair", cmdtext, true, 6) == 0)
{
SendClientMessage(playerid, 0xFF6600AA, "Las Venturas Airport");
SetPlayerPos(playerid, 1319.0171, 1251.5916, 10.8203);
SetPlayerInterior(playerid, 0);
return 1;
}
return 0;
}
Quote:
Originally Posted by [SFD
Marco ]
pawn Код:
|