Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: stefan0405 poslato Mart 01, 2012, 02:32:43 PRE PODNE

Naslov: [Pomoc] Oko 2 warning-a
Poruka od: stefan0405 poslato Mart 01, 2012, 02:32:43 PRE PODNE

Izbacuje mi ova 2 warning-a, nov sam u ovome(skriptanju) pa ne znam da ih resim.



C:\Documents and Settings\GBM\Desktop\Brutal Public  Ewolution\gamemodes\Bp-RolePlay.pwn(19161) : warning 202: number of arguments does not match definition
C:\Documents and Settings\GBM\Desktop\Brutal Public  Ewolution\gamemodes\Bp-RolePlay.pwn(32407) : warning 219: local variable "mod" shadows a variable at a preceding level



if(strcmp(cmd, "/trafika7", true) == 0 || strcmp(cmd, "/prodavnica7", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
         if (!PlayerToPoint(30, playerid,969.2311,-1133.5181,23.8281,292))//centerpoint 24-7
         {
            SendClientMessage(playerid, COLOR_GRAD2, "   Niste u blizini prodavnice !");
            return 1;
         }
         tmp = strtok(cmdtext, idx);
         if(!strlen(tmp))
         {





{
             if(BizzInfo[location-99][bProducts] <= 0)
             {
                 GameTextForPlayer(playerid, "~r~Nemamo vise zaliha", 5000, 1);
               return 1;
             }
             new mod = 100;
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
Naslov: Odg: [Pomoc] Oko 2 warning-a
Poruka od: Snich poslato Mart 01, 2012, 02:39:29 PRE PODNE
Citaj Pravila - Click (http://balkan-samp.com/forum/index.php?topic=11453.0)