Jump to content
  • 0

2 erori la gm urate :( la /startwest


Noname112

Question

[pawn]C:\Users\Flaviu Crisan\Desktop\SZONE Modificat\gamemodes\SZONE.pwn(5003) : warning 209: function "Streamer_OnPlayerEnterCP" should return a value

C:\Users\Flaviu Crisan\Desktop\SZONE Modificat\gamemodes\SZONE.pwn(10209) : warning 219: local variable "string2" shadows a variable at a preceding level[/pawn]

si linile gm

la prima erroare

[pawn]         FarmerPickup[playerid][0]++;

        PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);

      }

}

  return 1;

}

}

[/pawn]

a doua erroare

[pawn]public OnPlayerLogin(playerid,password[])

{

new tmp2[256];

    new string2[64];

new playername2[MAX_PLAYER_NAME];

new playernamesplit[3][MAX_PLAYER_NAME];

[/pawn]

Help me va rog

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

1. Schimba

Streamer_OnPlayerEnterCP
in
OnPlayerEnterDynamicCP
si
		        FarmerPickup[playerid][0]++;
		        PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
      }
		}
  return 1;
	}
}
in
		        FarmerPickup[playerid][0]++;
		        PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
      }
		}
	}
  return 1;
}

2. Sterge new string2[ 64 ];

Link to comment
Share on other sites

[pawn]mda au venit alte erori peste mine

C:\Users\FLAVIU~1\AppData\Local\Temp\Rar$EX15.598\Pawno 0.3c\include\streamer.inc(436) : warning 202: number of arguments does not match definition

C:\Users\Flaviu Crisan\Desktop\SZONE Modificat\gamemodes\SZONE.pwn(10207) : warning 219: local variable "string2" shadows a variable at a preceding level

C:\Users\Flaviu Crisan\Desktop\SZONE Modificat\gamemodes\SZONE.pwn(13381) : warning 202: number of arguments does not match definition

C:\Users\Flaviu Crisan\Desktop\SZONE Modificat\gamemodes\SZONE.pwn(13436) : warning 202: number of arguments does not match definition

C:\Users\Flaviu Crisan\Desktop\SZONE Modificat\gamemodes\SZONE.pwn(251) : warning 204: symbol is assigned a value that is never used: "Streamer_g_OPERC"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

5 Warnings.[/pawn]

[pawn]{150},//DRIVING/FLYING_SCHOOL//52[/pawn]

[pawn]    public OnPlayerLogin(playerid,password[])

{

new tmp2[256];

    new string2[64];

new playername2[MAX_PLAYER_NAME];

new playernamesplit[3][MAX_PLAYER_NAME];

    GetPlayerName(playerid, playername2, sizeof(playername2));

split(playername2, playernamesplit, '_');

format(string2, sizeof(string2), "%s.ini", playername2);

new File: UserFile = fopen(string2, io_read);

if ( UserFile )

{

    new PassData[256];

    new keytmp[256], valtmp[256];

    fread( UserFile , PassData , sizeof( PassData ) );

    keytmp = ini_GetKey( PassData );

    if( strcmp( keytmp , "Key" , true ) == 0 )

{

valtmp = ini_GetValue( PassData );

strmid(PlayerInfo[playerid][pKey], valtmp, 0, strlen(valtmp)-1, 255);

}

if(strcmp(PlayerInfo[playerid][pKey],password, true ) == 0 )

{

    new key[ 256 ] , val[ 256 ];

    new Data[ 256 ];

    while ( fread( UserFile , Data , sizeof( Data ) ) )

{;[/pawn]

[pawn] BusrouteWest[playerid][0] = 1;

BusrouteWest[playerid][1] = playervehicleid;

//BusrouteWest[playerid][2] = 0;

/* for (new i=0; i<=MAX_PLAYERS; i++)

{

if (IsPlayerConnected(i) && GetPlayerVehicleID(i) == playervehicleid) BusrouteWest[playerid][2] ++;

}*/

OnPlayerEnterCheckpoint(playerid);

return 1;

}

else

{

SendClientMessage(playerid, COLOR_GREY, "You are not in a bus!");[/pawn]

[pawn] BusrouteWest[playerid][0] = 1;

BusrouteWest[playerid][1] = playervehicleid;

//BusrouteWest[playerid][2] = 0;

/* for (new i=0; i<=MAX_PLAYERS; i++)

{

if (IsPlayerConnected(i) && GetPlayerVehicleID(i) == playervehicleid) BusrouteWest[playerid][2] ++;

}*/

OnPlayerEnterCheckpoint(playerid);

return 1;

}

else

{

SendClientMessage(playerid, COLOR_GREY, "You are not in a bus!");[/pawn]

[pawn]forward DateProp(playerid);

forward GetClosestPlayer(p1);

forward IsPlayerInTurf(playerid, turfid);

forward LoadMission(playerid,name[]);

forward SaveMission(playerid,name[]);

forward PrintBizInfo(playerid,targetid);

forward PrintSBizInfo(playerid,targetid);

forward SetPlayerUnjail();

forward OtherTimer();

forward RingTonerRev();

forward RingToner();

forward HireCost(carid);

forward IsABus(carid);

forward BanLog(string[]);

forward KickLog(string[]);

forward IsAHarvest(carid);

forward PayLog(string[]);

forward CKLog(string[]);

forward IsATruck(carid);

forward IsAnAmbulance(carid);

forward IsACopCar(carid);;[/pawn]

daca sterg new string2[64]; imi da mult mai multe erori

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.