Erors...
#1

Hello Samp Communtiy,
I got some erors in the gamemod I'll show the lines too..

First this :
pawn Код:
C:\Users\Max\RP\gamemodes\larp.pwn(12617) : error 079: inconsistent return types (array & non-array)
C:\Users\Max\RP\gamemodes\larp.pwn(12618) : error 079: inconsistent return types (array & non-array)
C:\Users\Max\RP\gamemodes\larp.pwn(12638) : error 079: inconsistent return types (array & non-array)
C:\Users\Max\RP\gamemodes\larp.pwn(12645) : error 079: inconsistent return types (array & non-array)
C:\Users\Max\RP\gamemodes\larp.pwn(12668) : error 079: inconsistent return types (array & non-array)
C:\Users\Max\RP\gamemodes\larp.pwn(12683) : error 079: inconsistent return types (array & non-array)
C:\Users\Max\RP\gamemodes\larp.pwn(12707) : error 079: inconsistent return types (array & non-array)
C:\Users\Max\RP\gamemodes\larp.pwn(12713) : error 079: inconsistent return types (array & non-array)
C:\Users\Max\RP\gamemodes\larp.pwn(12720) : error 079: inconsistent return types (array & non-array)
C:\Users\Max\RP\gamemodes\larp.pwn(12734) : error 079: inconsistent return types (array & non-array)
C:\Users\Max\RP\gamemodes\larp.pwn(12741) : error 079: inconsistent return types (array & non-array)
C:\Users\Max\RP\gamemodes\larp.pwn(12745) : error 079: inconsistent return types (array & non-array)
C:\Users\Max\RP\gamemodes\larp.pwn(12749) : error 079: inconsistent return types (array & non-array)
C:\Users\Max\RP\gamemodes\larp.pwn(12755) : error 079: inconsistent return types (array & non-array)
C:\Users\Max\RP\gamemodes\larp.pwn(12760) : error 079: inconsistent return types (array & non-array)
C:\Users\Max\RP\gamemodes\larp.pwn(12764) : error 079: inconsistent return types (array & non-array)
C:\Users\Max\RP\gamemodes\larp.pwn(12768) : error 079: inconsistent return types (array & non-array)
C:\Users\Max\RP\gamemodes\larp.pwn(12772) : error 079: inconsistent return types (array & non-array)
C:\Users\Max\RP\gamemodes\larp.pwn(12774) : error 079: inconsistent return types (array & non-array)
C:\Users\Max\RP\gamemodes\larp.pwn(12776) : error 017: undefined symbol "GetPlayerDynamicVehicleID"
C:\Users\Max\RP\gamemodes\larp.pwn(12777) : error 017: undefined symbol "PutPlayerInDynamicVehicle"
C:\Users\Max\RP\gamemodes\larp.pwn(12784) : error 079: inconsistent return types (array & non-array)
C:\Users\Max\RP\gamemodes\larp.pwn(12776) : error 017: undefined symbol "GetPlayerDynamicVehicleID"
C:\Users\Max\RP\gamemodes\larp.pwn(12790) : error 079: inconsistent return types (array & non-array)
C:\Users\Max\RP\gamemodes\larp.pwn(12797) : error 079: inconsistent return types (array & non-array)
C:\Users\Max\RP\gamemodes\larp.pwn(12801) : error 079: inconsistent return types (array & non-array)
Will It might be the undefined symbol "GetPlayerDynamicVehicleID" (Its defined..)
Most of all the lines are return 1;
[[Works like that : Line ~> Script Line]]
Lines:
[[Line 12617 ~ 12618]]
pawn Код:
12617 ~> dcmd(specplayer, 10, cmdtext);
12618 ~> dcmd(specoff, 7, cmdtext);
==============================
[[12645 ~ 12668]]
pawn Код:
12645  ~> return 1;
12668 ~> return 1;
==============================
[[12749 ~ 12755]]
pawn Код:
12749 ~> return 1;
12755 ~> return 1;
==============================
[[12760 ~ 12764]]
pawn Код:
12760 ~> return 1;
12764 ~> return 1;
==============================
All rest are return 1; (only this like this)
pawn Код:
12774 ~> if(gEngine[playerid] == 1) { return 1; }
==============================
About Undefined Symbol (undefined symbol "GetPlayerDynamicVehicleID")
pawn Код:
12776 ~> new playerveh = GetPlayerDynamicVehicleID(playerid);
==============================
About Undefined Symbol (undefined symbol "PutPlayerInDynamicVehicle")
pawn Код:
12777 ~> PutPlayerInDynamicVehicle(playerid, playerveh, 0);
==============================
That's it if you know what the problem post it here ,
Thanks,
Max
Reply
#2

error 079:
The function returns both values and arrays, which is not allowed.
If a function returns an array, all return statements must specify
an array (of the same size and dimensions).

error 017:
The symbol (variable, constant or function) is not declared.

Taken from Pawn_Language_Guide.pdf.
Reply
#3

Quote:
Originally Posted by Retardedwolf
Посмотреть сообщение
error 079:
The function returns both values and arrays, which is not allowed.
If a function returns an array, all return statements must specify
an array (of the same size and dimensions).

error 017:
The symbol (variable, constant or function) is not declared.

Taken from Pawn_Language_Guide.pdf.
I mean Can you tell me what to fix not the Eror INFO..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)