errors - 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: errors (
/showthread.php?tid=291180)
errors -
viosteaua98 - 18.10.2011
I want make teleport
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/drylake", cmdtext, true, 10) == 0)
{
SetPlayerInterior(playerid,0)
SetPlayerPos(playerid, 15.5371,1503.0522,12.7560);
return 1;
}
return 0;
}
1 Error
pawn Код:
D:\Jocuri\Gta san andreas\Teleport.pwn(94) : error 001: expected token: ";", but found "-identifier-"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Re: errors -
Gustavob - 18.10.2011
You forgot a ; at the end of a line.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/drylake", cmdtext, true, 10) == 0)
{
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid, 15.5371,1503.0522,12.7560);
return 1;
}
return 0;
}
Re: errors -
Drebin - 18.10.2011
EDIT:
Started changed code/errors during writing my response