SA-MP Forums Archive
Some Errors! Help Me! - 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: Some Errors! Help Me! (/showthread.php?tid=399465)



Some Errors! Help Me! - Veeco - 14.12.2012

Quote:

C:\Users\BenRoger\Desktop\New folder\pawno\include\PPC_PlayerCommands.inc(1062) : warning 209: function "cmd_work" should return a value
C:\Users\******\Desktop\New folder\pawno\include\PPC_PlayerCommands.inc(1063) : error 010: invalid function or declaration
C:\Users\******\Desktop\New folder\pawno\include\PPC_PlayerCommands.inc(1064) : error 010: invalid function or declaration
C:\Users\******\Desktop\New folder\pawno\include\PPC_PlayerCommands.inc(1067) : error 010: invalid function or declaration
C:\Users\BenRoger\Desktop\New folder\pawno\include\PPC_PlayerCommands.inc(2787) : error 036: empty statement
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.

Error Code :
http://pastebin.com/tvSWKKDP

Can Someone Fix Them?

The Fail Is :
Quote:

}
}
}
default: SendClientMessage(playerid, 0xFF0000FF, "Your class cannot do any jobs");
}
}
else // Send a message to let the player know he already has a job
SendClientMessage(playerid, 0xFF0000FF, "You're already doing a job");
}
}
else
return 0;

// Let the server know that this was a valid command
return 1;
}

I Think :P


Re: Some Errors! Help Me! - Lynet - 14.12.2012

You place The brackets wrong.
ATM Im on ipad else i fixed it..


Re: Some Errors! Help Me! - Lz - 14.12.2012

Post that section of the script from when you opened the first bracket "{"


Re: Some Errors! Help Me! - Veeco - 14.12.2012

Fixed