whats wrong? - 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: whats wrong? (
/showthread.php?tid=110947)
whats wrong? -
[SW]thekillaer - 29.11.2009
im using
http://forum.sa-mp.com/index.php?topic=95706.0
Код:
public OnCheckpointEnter(playerid, checkpointid){
switch(checkpointid)
{
// ELAVATOR
case ELAVATOR_BOTTOM: // The checkpoint ID we specified when we created the checkpoint
{
SendClientMessage(playerid, COLOR_MESSAGE, "Going up!");
SetPlayerPos(playerid,1442.7020,-167.7312,17.3382)
}
case ELAVATOR_TOP: // The checkpoint ID we specified when we created the checkpoint
{
SendClientMessage(playerid, COLOR_MESSAGE, "Going Down!");
SetPlayerPos(playerid, 1442.7020,-167.7312,17.3382)
}
}
return 1;
}
I get this error
Код:
C:\PROGRA~1\ROCKST~1\GTASAN~1\GTAU-S~1.WIN\GAMEMO~1\UBERST~1.PWN(102) : error 001: expected token: ";", but found "}"
C:\PROGRA~1\ROCKST~1\GTASAN~1\GTAU-S~1.WIN\GAMEMO~1\UBERST~1.PWN(108) : error 001: expected token: ";", but found "}"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
Re: whats wrong? -
Devine - 29.11.2009
Which lines are 102 and 108?
Re: whats wrong? -
[SW]thekillaer - 29.11.2009
Код:
public OnCheckpointEnter(playerid, checkpointid){
switch(checkpointid)
{
// ELAVATOR
case ELAVATOR_BOTTOM: // The checkpoint ID we specified when we created the checkpoint
{
SendClientMessage(playerid, COLOR_MESSAGE, "Going up!");
SetPlayerPos(playerid,1442.7020,-167.7312,17.3382)
} // THIS ONE IS 102
case ELAVATOR_TOP: // The checkpoint ID we specified when we created the checkpoint
{
SendClientMessage(playerid, COLOR_MESSAGE, "Going Down!");
SetPlayerPos(playerid, 1442.7020,-167.7312,17.3382)
} // THIS ONE IS 108
}
return 1;
}
Re: whats wrong? -
Devine - 29.11.2009
Код:
public OnCheckpointEnter(playerid, checkpointid){
switch(checkpointid)
{
// ELAVATOR
case ELAVATOR_BOTTOM: // The checkpoint ID we specified when we created the checkpoint
{
SendClientMessage(playerid, COLOR_MESSAGE, "Going up!");
SetPlayerPos(playerid,1442.7020,-167.7312,17.3382);
}
case ELAVATOR_TOP: // The checkpoint ID we specified when we created the checkpoint
{
SendClientMessage(playerid, COLOR_MESSAGE, "Going Down!");
SetPlayerPos(playerid, 1442.7020,-167.7312,17.3382);
}
}
return 1;
}
Re: whats wrong? -
[SW]thekillaer - 29.11.2009
Oo!!! i see i was missing that little ; after the )