rendered paste body//command start line nr. = 132
/*line 132*/if(strcmp(cmd, "/setcoord", true) == 0)
{
if(IsAdmin == 1)
{
new PlayerID;
new fx, fy, fz;
new tmp[256];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /setcoord [playerid] [float:x] [float:y] [float:z]
return 1;
}
PlayerID = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /setcoord [playerid] [float:x] [float:y] [float:z]
return 1;
}
fx = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /setcoord [playerid] [float:x] [float:y] [float:z]
return 1;
}
fy = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_YELLOW, "USAGE: /setcoord [playerid] [float:x] [float:y] [float:z]
return 1;
}
fz = strval(tmp);
SetPlayerPos(PlayerID, fx, fy, fz);
}
else
{
SendClientMessage(playerid, COLOR_RED, "You are not an admin!");
}
return 1;
}
}
return 0;
}
//and the errors:
/*C:\Documents and Settings\Lars Aaby\Skrivebord\SA-MP Server Scripting\gamemodes\TestMode.pwn(143) : error 037: invalid string (possibly non-terminated string)
C:\Documents and Settings\Lars Aaby\Skrivebord\SA-MP Server Scripting\gamemodes\TestMode.pwn(143) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Lars Aaby\Skrivebord\SA-MP Server Scripting\gamemodes\TestMode.pwn(143) : error 017: undefined symbol "setcoord"
C:\Documents and Settings\Lars Aaby\Skrivebord\SA-MP Server Scripting\gamemodes\TestMode.pwn(143) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
*/