12.10.2015, 14:29
Hello everyone,
Well after I worked on /work command for my script (strcmp cmd), I got around 5 errors in 2 lines. The command code is :
and the compiling log is:
Ignore the warnings above the errors.
Line 32061:
(without the "")
and line 32063:
Whoever help me will get +rep!
Thank you for reading.
Well after I worked on /work command for my script (strcmp cmd), I got around 5 errors in 2 lines. The command code is :
pawn Код:
if(strcmp(cmd, "/work", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pJob] !=16)
{
SendClientMessage(playerid, COLOR_WHITE, "You are not a Woodman");
return 1;
}
if(PlayerToPoint(3.0,playerid,-401.9135,-1419.8245,26.3281))
{
SetPlayerCheckpoint(playerid, -416.8940, -1420.9407, 24.2437, 2.0);
return 1;
}
OnPlayerEnterCheckpoint(playerid)
{
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid, -396.8735, -1435.6885, 25.7266. 2.0);
AttachPlayerObjectToPlayer(objectplayer, objectid, attachplayer, 1.5, 0.5, 1431, 0, 1.5, 2 );
}
OnPlayerEnterCheckpoint(playerid)
{
DisablePlayerCheckpoint(playerid);
GivePlayerMoney(5000,playerid);
}
}
}
and the compiling log is:
Код:
C:\Users\Server\Desktop\Fun-Generation RPG\gamemodes\Rp.pwn(2712) : warning 204: symbol is assigned a value that is never used: "string" C:\Users\Server\Desktop\Fun-Generation RPG\gamemodes\Rp.pwn(7872) : warning 225: unreachable code C:\Users\Server\Desktop\Fun-Generation RPG\gamemodes\Rp.pwn(10738) : warning 217: loose indentation C:\Users\Server\Desktop\Fun-Generation RPG\gamemodes\Rp.pwn(10770) : warning 217: loose indentation C:\Users\Server\Desktop\Fun-Generation RPG\gamemodes\Rp.pwn(25136) : warning 217: loose indentation C:\Users\Server\Desktop\Fun-Generation RPG\gamemodes\Rp.pwn(29233) : warning 217: loose indentation C:\Users\Server\Desktop\Fun-Generation RPG\gamemodes\Rp.pwn(32061) : error 001: expected token: ";", but found "{" C:\Users\Server\Desktop\Fun-Generation RPG\gamemodes\Rp.pwn(32063) : error 001: expected token: ",", but found "." C:\Users\Server\Desktop\Fun-Generation RPG\gamemodes\Rp.pwn(32063) : error 029: invalid expression, assumed zero C:\Users\Server\Desktop\Fun-Generation RPG\gamemodes\Rp.pwn(32063) : warning 215: expression has no effect C:\Users\Server\Desktop\Fun-Generation RPG\gamemodes\Rp.pwn(32063) : error 001: expected token: ";", but found ")" C:\Users\Server\Desktop\Fun-Generation RPG\gamemodes\Rp.pwn(32063) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.
Line 32061:
pawn Код:
OnPlayerEnterCheckpoint(playerid)
"{"
and line 32063:
pawn Код:
SetPlayerCheckpoint(playerid, -396.8735, -1435.6885, 25.7266. 2.0);
Thank you for reading.