SA-MP Forums Archive
Help me to compile the Gamemode - 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: Help me to compile the Gamemode (/showthread.php?tid=391743)



Help me to compile the Gamemode - DAVIDXP - 11.11.2012

Hi all I have a problem with my GM There are many errors at script I compile,recompile but don't work.
This is my GM:http://www.solidfiles.com/d/abf02128b9/
The errors will you see when Compile!!
Please Help!!!!
I will be grateful!!!


Re: Help me to compile the Gamemode - Alex Magaсa - 11.11.2012

Dont' give your whole script here lol
Also try to replace the includes with 0.3e includes and re-compile!


Re: Help me to compile the Gamemode - BlueSky_ - 11.11.2012

which includes you using?

P.S:Just tell about the errors no need for gm.


Re: Help me to compile the Gamemode - DAVIDXP - 11.11.2012

This Includes:
#include < a_samp > //
#include < foreach > //
#include < lethaldudb2 > //
#include < sscanf2 > //
#include < zcmd > //
#include < dini > //
#include < streamer > //
#include < CPLoader > //
#include < dudb > //


Re: Help me to compile the Gamemode - Konstantinos - 11.11.2012

Just post the errors/warnings you got and show us the lines (atleast 1 line before and after).


Re: Help me to compile the Gamemode - DAVIDXP - 11.11.2012

C:\Users\David\Desktop\pawno\include\dutils.inc(44 2) : warning 219: local variable "s1" shadows a variable at a preceding level
C:\Users\David\Desktop\pawno\include\lethaldudb2.i nc(36) : warning 219: local variable "s1" shadows a variable at a preceding level
C:\Users\David\Desktop\pawno\include\lethaldudb2.i nc(37) : warning 219: local variable "s2" shadows a variable at a preceding level
C:\Users\David\Desktop\RAS(1).pwn(62) : error 017: undefined symbol "gNameTags"
C:\Users\David\Desktop\RAS(1).pwn(62) : warning 215: expression has no effect
C:\Users\David\Desktop\RAS(1).pwn(62) : error 001: expected token: ";", but found "]"
C:\Users\David\Desktop\RAS(1).pwn(62) : error 029: invalid expression, assumed zero
C:\Users\David\Desktop\RAS(1).pwn(62) : fatal error 107: too many error messages on one line
This error an the this script:
public OnPlayerConnect( playerid )
{

new string[ 300 ], file[ 256 ];
new tmp3[ 50 ]; GetPlayerIp( playerid, tmp3, 50 );

for ( new i; i < MAX_PLAYERS; i++ )
if ( IsPlayerConnected ( i ) && gNameTags[ i ] == 0 );
ShowPlayerNameTagForPlayer( i, playerid, 0 );

ramped[ playerid ] = 1;
GPSTimer[ playerid ] = 0;
Vup[ playerid ] = 0;
JumpSize[ playerid ] = 0;
VupKey[ playerid ] = 0;
Posaved[ playerid ] = 0;
firstspawn[ playerid ] = 1;
gNameTags[ playerid ] = 1;
InEvent[ playerid ] = 0;
InRRace[ playerid ] = 0;
IsRaceTextDrawActivated[ playerid ] = 0;
g_GotInvitedToDuel[ playerid ] = 0;
g_HasInvitedToDuel[ playerid ] = 0;
g_IsPlayerDueling[ playerid ] = 0;
ClickedPlayerID[ playerid ] = -1;
HaveGPS[ playerid ] = false;
PlayerInfo[ playerid ][ Deaths ] = 0;
PlayerInfo[ playerid ][ Kills ] = 0;
PlayerInfo[ playerid ][ Jailed ] = 0;
PlayerInfo[ playerid ][ Frozen ] = 0;
PlayerInfo[ playerid ][ Level ] = 0;
PlayerInfo[ playerid ][ pVip ] = 0;
PlayerInfo[ playerid ][ LoggedIn ] = 0;
PlayerInfo[ playerid ][ Registered ] = 0;
PlayerInfo[ playerid ][ God ] = 0;
PlayerInfo[ playerid ][ GodCar ] = 0;
PlayerInfo[ playerid ][ TimesSpawned ] = 0;
PlayerInfo[ playerid ][ Muted ] = 0;
PlayerInfo[ playerid ][ MuteWarnings ] = 0;
PlayerInfo[ playerid ][ Warnings ] = 0;
PlayerInfo[ playerid ][ Caps ] = 0;
PlayerInfo[ playerid ][ DoorsLocked ] = 0;
PlayerInfo[ playerid ][ pCar ] = -1;
for ( new i; i < PING_MAX_EXCEEDS; i++ ) PlayerInfo[ playerid ][ pPing ][ i ] = 0;
PlayerInfo[ playerid ][ SpamCount ] = 0;
PlayerInfo[ playerid ][ SpamTime ] = 0;
PlayerInfo[ playerid ][ PingCount ] = 0;
PlayerInfo[ playerid ][ PingTime ] = 0;
PlayerInfo[ playerid ][ FailLogin ] = 0;
PlayerInfo[ playerid ][ Coins ] = 0;
PlayerInfo[ playerid ][ DeathMatch ] = 0;
PlayerInfo[ playerid ][ RaceScore ] = 0;
PlayerInfo[ playerid ][ Rank ] = 0;
RecentlyRobbed[ playerid ] = 0;
PlayerInfo[ playerid ][ ConnectTime ] = gettime( );
SpawnInDM[ playerid ] = " ";
DM[ playerid ] = 0;
Reply[ playerid ] = 0;

TogglePlayerControllable( playerid, 0 );


Re: Help me to compile the Gamemode - Konstantinos - 11.11.2012

Press 'Ctrl + F' and type "gNameTags" without the " ".
If you don't see anything such as
pawn Код:
new gNameTags[MAX_PLAYERS];
then you should define it as a variable.


Re: Help me to compile the Gamemode - Faisal_khan - 11.11.2012

Bruh please use pawn tags to paste a code.