Help me with strok !!
#1

How to fix this error guys !
Код:
C:\Users\Administrator.ThinPC-PC\Desktop\samp03z_svr_R1_win32\pawno\include\streamer.inc(487) : warning 219: local variable "hitid" shadows a variable at a preceding level
C:\Users\Administrator.ThinPC-PC\Desktop\samp03z_svr_R1_win32\gamemodes\larp.pwn(6899) : warning 209: function "Streamer_OnPlayerDisconnect" should return a value
C:\Users\Administrator.ThinPC-PC\Desktop\samp03z_svr_R1_win32\gamemodes\larp.pwn(25115) : error 021: symbol already defined: "strtok"
C:\Users\Administrator.ThinPC-PC\Desktop\samp03z_svr_R1_win32\gamemodes\larp.pwn(25130) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator.ThinPC-PC\Desktop\samp03z_svr_R1_win32\gamemodes\larp.pwn(26655) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator.ThinPC-PC\Desktop\samp03z_svr_R1_win32\gamemodes\larp.pwn(26715) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator.ThinPC-PC\Desktop\samp03z_svr_R1_win32\gamemodes\larp.pwn(26768) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator.ThinPC-PC\Desktop\samp03z_svr_R1_win32\gamemodes\larp.pwn(27436) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator.ThinPC-PC\Desktop\samp03z_svr_R1_win32\gamemodes\larp.pwn(27495) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator.ThinPC-PC\Desktop\samp03z_svr_R1_win32\gamemodes\larp.pwn(28176) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator.ThinPC-PC\Desktop\samp03z_svr_R1_win32\gamemodes\larp.pwn(28204) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator.ThinPC-PC\Desktop\samp03z_svr_R1_win32\gamemodes\larp.pwn(28215) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator.ThinPC-PC\Desktop\samp03z_svr_R1_win32\gamemodes\larp.pwn(28275) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator.ThinPC-PC\Desktop\samp03z_svr_R1_win32\gamemodes\larp.pwn(28544) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator.ThinPC-PC\Desktop\samp03z_svr_R1_win32\gamemodes\larp.pwn(28571) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator.ThinPC-PC\Desktop\samp03z_svr_R1_win32\gamemodes\larp.pwn(28601) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator.ThinPC-PC\Desktop\samp03z_svr_R1_win32\gamemodes\larp.pwn(28609) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator.ThinPC-PC\Desktop\samp03z_svr_R1_win32\gamemodes\larp.pwn(28643) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator.ThinPC-PC\Desktop\samp03z_svr_R1_win32\gamemodes\larp.pwn(28651) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator.ThinPC-PC\Desktop\samp03z_svr_R1_win32\gamemodes\larp.pwn(28684) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator.ThinPC-PC\Desktop\samp03z_svr_R1_win32\gamemodes\larp.pwn(28729) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator.ThinPC-PC\Desktop\samp03z_svr_R1_win32\gamemodes\larp.pwn(28792) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator.ThinPC-PC\Desktop\samp03z_svr_R1_win32\gamemodes\larp.pwn(28850) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator.ThinPC-PC\Desktop\samp03z_svr_R1_win32\gamemodes\larp.pwn(28858) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator.ThinPC-PC\Desktop\samp03z_svr_R1_win32\gamemodes\larp.pwn(28893) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator.ThinPC-PC\Desktop\samp03z_svr_R1_win32\gamemodes\larp.pwn(28901) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator.ThinPC-PC\Desktop\samp03z_svr_R1_win32\gamemodes\larp.pwn(29128) : error 047: array sizes do not match, or destination array is too small
C:\Users\Administrator.ThinPC-PC\Desktop\samp03z_svr_R1_win32\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 © 1997-2006, ITB CompuPhase


26 Errors.
pls help me . tks
Reply
#2

This post is the worst help request I've seen. Poor grammar, broadly-categorized title, didn't provide code with the issue... **Hint hint, I need to see the portion of the code where the errors are originating from**
Reply
#3

Help me with code!! (Give the code mate)
Reply
#4

Post 1/1. Forum membership succeeded
Reply
#5

pawn Код:
streamer.inc(487) : warning 219: local variable "hitid" shadows a variable at a preceding level
You've declared "hitid" as global in the gamemode, re-name it to something else.

pawn Код:
larp.pwn(6899) : warning 209: function "Streamer_OnPlayerDisconnect" should return a value
In OnPlayerDisconnect callback from your gamemode, you don't return any value when you should:
pawn Код:
public OnPlayerDisconnect(playerid, reason)
{
    // code..
    return 1;
}
pawn Код:
larp.pwn(25115) : error 021: symbol already defined: "strtok"
It's already defined so you don't need to the in line 25115.

pawn Код:
larp.pwn(25130) : error 047: array sizes do not match, or destination array is too small
The size of "cmd" or whatever you named it is too small. Using as size 256 is bad (read here why: https://sampforum.blast.hk/showthread.php?tid=55261) so the best solution would be to convert strtok to sscanf and strcmp to ZCMD or y_commands. You gain speed and better performance over the commands and you don't have to use old and outdated ways (which is always recommended not to use them).
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)