PDA

View Full Version : Whats wrong with GM?


GTLS
15/05/2015, 02:37 PM
Guys i was looking forward to use raven's RP script as a base to script my server but when i compiled it's given larp.pwn it gives me following errors please can you say how do i solve them? this is that larp.pwn

this is page of it https://drive.******.com/file/d/0B04OBYn_5-moOG1PbHp5YmhrR3M/view?usp=sharing << find my larp here

and here are those 26 errors:

C:\GTLS\Samp servers\Raven' s Roleplay\gamemodes\larp.pwn(6899) : warning 209: function "Streamer_OnPlayerDisconnect" should return a value
C:\GTLS\Samp servers\Raven' s Roleplay\gamemodes\larp.pwn(25115) : error 021: symbol already defined: "strtok"
C:\GTLS\Samp servers\Raven' s Roleplay\gamemodes\larp.pwn(25130) : error 047: array sizes do not match, or destination array is too small
C:\GTLS\Samp servers\Raven' s Roleplay\gamemodes\larp.pwn(26655) : error 047: array sizes do not match, or destination array is too small
C:\GTLS\Samp servers\Raven' s Roleplay\gamemodes\larp.pwn(26715) : error 047: array sizes do not match, or destination array is too small
C:\GTLS\Samp servers\Raven' s Roleplay\gamemodes\larp.pwn(26768) : error 047: array sizes do not match, or destination array is too small
C:\GTLS\Samp servers\Raven' s Roleplay\gamemodes\larp.pwn(27436) : error 047: array sizes do not match, or destination array is too small
C:\GTLS\Samp servers\Raven' s Roleplay\gamemodes\larp.pwn(27495) : error 047: array sizes do not match, or destination array is too small
C:\GTLS\Samp servers\Raven' s Roleplay\gamemodes\larp.pwn(28176) : error 047: array sizes do not match, or destination array is too small
C:\GTLS\Samp servers\Raven' s Roleplay\gamemodes\larp.pwn(28204) : error 047: array sizes do not match, or destination array is too small
C:\GTLS\Samp servers\Raven' s Roleplay\gamemodes\larp.pwn(28215) : error 047: array sizes do not match, or destination array is too small
C:\GTLS\Samp servers\Raven' s Roleplay\gamemodes\larp.pwn(28275) : error 047: array sizes do not match, or destination array is too small
C:\GTLS\Samp servers\Raven' s Roleplay\gamemodes\larp.pwn(28544) : error 047: array sizes do not match, or destination array is too small
C:\GTLS\Samp servers\Raven' s Roleplay\gamemodes\larp.pwn(28571) : error 047: array sizes do not match, or destination array is too small
C:\GTLS\Samp servers\Raven' s Roleplay\gamemodes\larp.pwn(28601) : error 047: array sizes do not match, or destination array is too small
C:\GTLS\Samp servers\Raven' s Roleplay\gamemodes\larp.pwn(28609) : error 047: array sizes do not match, or destination array is too small
C:\GTLS\Samp servers\Raven' s Roleplay\gamemodes\larp.pwn(28643) : error 047: array sizes do not match, or destination array is too small
C:\GTLS\Samp servers\Raven' s Roleplay\gamemodes\larp.pwn(28651) : error 047: array sizes do not match, or destination array is too small
C:\GTLS\Samp servers\Raven' s Roleplay\gamemodes\larp.pwn(28684) : error 047: array sizes do not match, or destination array is too small
C:\GTLS\Samp servers\Raven' s Roleplay\gamemodes\larp.pwn(28729) : error 047: array sizes do not match, or destination array is too small
C:\GTLS\Samp servers\Raven' s Roleplay\gamemodes\larp.pwn(28792) : error 047: array sizes do not match, or destination array is too small
C:\GTLS\Samp servers\Raven' s Roleplay\gamemodes\larp.pwn(28850) : error 047: array sizes do not match, or destination array is too small
C:\GTLS\Samp servers\Raven' s Roleplay\gamemodes\larp.pwn(28858) : error 047: array sizes do not match, or destination array is too small
C:\GTLS\Samp servers\Raven' s Roleplay\gamemodes\larp.pwn(28893) : error 047: array sizes do not match, or destination array is too small
C:\GTLS\Samp servers\Raven' s Roleplay\gamemodes\larp.pwn(28901) : error 047: array sizes do not match, or destination array is too small
C:\GTLS\Samp servers\Raven' s Roleplay\gamemodes\larp.pwn(29128) : error 047: array sizes do not match, or destination array is too small
C:\GTLS\Samp servers\Raven' s Roleplay\gamemodes\larp.pwn(29182) : error 047: array sizes do not match, or destination array is too small

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

so this is it any help would be greatful.. i will surely rep+ the helper..

26 Errors.

Smileys
15/05/2015, 02:50 PM
Well, I tried to edit it, but the script uses outdated shiet such as strtok, strcmp, even OnPlayerDisconnect doesn't have a "return 1" lol...
I suggest you download another gamemode, one that's been created not too long ago and uses sscanf, streamer, zcmd(or ycmd) etc.

GTLS
15/05/2015, 02:58 PM
Well, I tried to edit it, but the script uses outdated shiet such as strtok, strcmp, even OnPlayerDisconnect doesn't have a "return 1" lol...
I suggest you download another gamemode, one that's been created not too long ago and uses sscanf, streamer, zcmd(or ycmd) etc.

i will try another GM but still is there any chance to convert this server in new one?

Luis-
15/05/2015, 03:03 PM
It'll take a while to convert it, seeing as it was probably coded for 0.3a or something.

Toxik
15/05/2015, 03:16 PM
lmao That GM is full of bugs :P

GTLS
15/05/2015, 03:20 PM
It'll take a while to convert it, seeing as it was probably coded for 0.3a or something.

Thanks buddy!! take your own time i am not in hurry mean while i will also try to convert it and will do some other things..