[HELP]Compile Error
#1

Hi! When I ended my script of teleport I found this errors:


C:\Users\Pedro\Desktop\SOURCE SAMP\Trabalhos\Teleport\Teleport.pwn(23) : error 008: must be a constant expression; assumed zero
C:\Users\Pedro\Desktop\SOURCE SAMP\Trabalhos\Teleport\Teleport.pwn(54) : error 001: expected token: "#endif", but found "-end of file-"
C:\Users\Pedro\Desktop\SOURCE SAMP\Trabalhos\Teleport\Teleport.pwn(54) : error 030: compound statement not closed at the end of file (started at line 54)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.

public OnPlayerCommandText(playerid, cmdtext[])
{
#if (strcmp("/drag", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid,53,-2681.6267,1306.6257,55.4297);
return 1;
}
#if (strcmp("/trampolim", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid,53,-1704.6407,1340.0045,7.1812);
return 1;
}
#if (strcmp("/drift", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid,53,-2421.9727,-608.1148,132.5625);
return 1;
}
#if (strcmp("/carsumo", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid,53,-2082.9387,-123.6078,35.3203);
return 1;
}
#if (strcmp("/mrw", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid,53,1366.2354,2195.0344,14.24 95);
return 1;
}
#if (strcmp("/mrw2", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid,53,-2292.2307,119.2154,36.466;
return 1;
}
#endif
Reply
#2

Here you go:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/drag", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid,-2681.6267,1306.6257,55.4297);
return 1;
}
if (strcmp("/trampolim", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid,-1704.6407,1340.0045,7.1812);
return 1;
}
if (strcmp("/drift", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid,-2421.9727,-608.1148,132.5625);
return 1;
}
if (strcmp("/carsumo", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid,-2082.9387,-123.6078,35.3203);
return 1;
}
if (strcmp("/mrw", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid,1366.2354,2195.0344,14.2495);
return 1;
}
if (strcmp("/mrw2", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid,-2292.2307,119.2154,36.466);
return 1;
}
return 0;
}
Reply
#3

Thank you! SOLVED!
Reply
#4

No problem
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)