guys whats wrong?
#2

This code can be simplified a bunch.
You forgot to add " ; " after your ' new ' statement.
Also, the "Never used" means the script doesn't recall the function be used other as a pickup name.
pawn Код:
new p[4]; // Instead of 4 different global variables, let's wrap it into One(1)

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////
public OnGameModeInit()
{ // Need a Opening bracket.
   // Now, You always start at [0], so if your total is 4, it's 0-3.
    p[0] = CreatePickup(1242, 2,106.9319,2526.3423,16.7592,-1);
    p[1] = CreatePickup(1242, 2,109.4811,2553.3660,304.4030,-1);
    p[2] = CreatePickup(1242, 2,226.6052,2527.8113,16.7939,-1);
    p[3] = CreatePickup(1242, 2,228.6457,2550.3142,304.4030,-1);
    return 1;
}
pawn Код:
C:\Users\SEETANEEA\Desktop\kailash&div&ritesh songs\MUSIC FROM DESKTOP\!SAMP 3Z!\gamemodes\Untitled.pwn(203) : warning 204: symbol is assigned a value that is never used: "p1"
C:\Users\SEETANEEA\Desktop\kailash&div&ritesh songs\MUSIC FROM DESKTOP\!SAMP 3Z!\gamemodes\Untitled.pwn(204) : warning 204: symbol is assigned a value that is never used: "p2"
C:\Users\SEETANEEA\Desktop\kailash&div&ritesh songs\MUSIC FROM DESKTOP\!SAMP 3Z!\gamemodes\Untitled.pwn(205) : warning 204: symbol is assigned a value that is never used: "p3"
C:\Users\SEETANEEA\Desktop\kailash&div&ritesh songs\MUSIC FROM DESKTOP\!SAMP 3Z!\gamemodes\Untitled.pwn(206) : warning 204: symbol is assigned a value that is never used: "p4"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase
/* These are here because " p " isn't being used in the script yet, aside from a Pickup's name, once you do something with it, the warnings will be removed. Ignore for now. */
Reply


Messages In This Thread
guys whats wrong? - by DIVESHSEET - 26.05.2014, 05:46
Re: guys whats wrong? - by Lynn - 26.05.2014, 05:54
Re: guys whats wrong? - by Rittik - 26.05.2014, 06:31
Re: guys whats wrong? - by Lynn - 26.05.2014, 07:12
Re: guys whats wrong? - by amirab - 26.05.2014, 07:31
Re: guys whats wrong? - by AiRaLoKa - 26.05.2014, 08:39

Forum Jump:


Users browsing this thread: 2 Guest(s)