sourcepawn
sourcepawn copied to clipboard
Warning, variable inside function is not used
Everything would be fine, but inside sourcemod there are prototypes of functions, for example for timers, the compiler starts to complain when the code creating timers or using tracing is commented out. Because the function has access modifier 'stock', the compiler should not complain in this case. Timer:
//int projectile = L4D2_VomitJarPrj(client, vPos, vAng);
//CreateTimer(1.0, TimerDetonateVomitjar, EntIndexToEntRef(projectile));
left4dhooks_test.sp(2383) : error 203: symbol never used: "timer"
2383 | stock Action TimerDetonate(Handle timer, int entity)
Or for tracing:
//Handle trace = TR_TraceRayFilterEx(vPos, vAng, MASK_SHOT, RayType_Infinite, TraceFilter, client)
left4dhooks_test.sp(6134) : error 203: symbol never used: "contentsMask"
6134 | stock bool TraceFilter(int entity, int contentsMask, int client)