Jump to content
  • 0

Warn uri


Saringan_cs

Question

C:\Users\Cbu-Samp\Desktop\DRiFT ZonE V3.0\gamemodes\gf.pwn(10265) : warning 217: loose indentation

C:\Users\Cbu-Samp\Desktop\DRiFT ZonE V3.0\gamemodes\gf.pwn(10277) : warning 217: loose indentation

C:\Users\Cbu-Samp\Desktop\DRiFT ZonE V3.0\gamemodes\gf.pwn(25261) : warning 202: number of arguments does not match definition

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Header size:          5976 bytes

Code size:          1116472 bytes

Data size:          4430136 bytes

Stack/heap size:      16384 bytes; estimated max. usage=5103 cells (20412 bytes)

Total requirements: 5568968 bytes

3 Warnings.

Astea sunt liniile :

[pawn] 10265 :if(strcmp(cmd,"/gate",true) == 0)[/pawn]

[pawn]10277: if(strcmp(cmd, "/lock", true) == 0)[/pawn]

[pawn]25261: MoveObject(gate, 1543, -1627.6999511719, 15.199999809265);[/pawn]

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

La primele doua, trebuie sa aliniezi bine liniile, exemple:

Rau:

if( strcmp( cmd, "/gate", true ) == 0 )
{
    Cod
                     Cod
         Cod
  Cod
        return 1;
}
Bun:
if( strcmp( cmd, "/gate", true ) == 0 )
{
    Cod
    Cod
    Cod
    Cod
    return 1;
}
Sau pune #pragma tabsize 0 sus in script daca nu te descurci. La a 2-a, trebuie sa pui si parametrul de viteza, verifica wiki ca sa vezi: http://wiki.sa-mp.com/wiki/MoveObject Pentru o poarta, e destul 5.0, schimba
MoveObject(gate, 1543, -1627.6999511719, 15.199999809265);
in
MoveObject(gate, 1543, -1627.6999511719, 15.199999809265, 5.0);

Topic inchis, pentru ca nu ai respectat regula titlului.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.