Кто-то мне помогает
#1

Кто-то мне помогает

PHP Code:
forward Caminhoneiro_CarregarDesc(playerid);
public 
Caminhoneiro_CarregarDesc(playerid)
{
    switch (
PlayerData[playerid][PartedoTrabalho])
    {
        case 
1:
        {
            new 
StartLoc[50], EndLoc[50], Load[50], Float:xFloat:yFloat:zUnloadMsg[100];
            
PlayerData[playerid][PartedoTrabalho] = 2;
            
DisablePlayerCheckpoint(playerid);
            
format(StartLoc50LocalCargaDescarga[PlayerData[playerid][Carregamento]][NomedoLocal]);
            
format(EndLoc50LocalCargaDescarga[PlayerData[playerid][Descarregamento]][NomedoLocal]);
            
format(Load50ACargas[PlayerData[playerid][CargaID]][LoadName]);
            
LocalCargaDescarga[PlayerData[playerid][Descarregamento]][LocX];
            
LocalCargaDescarga[PlayerData[playerid][Descarregamento]][LocY];
            
LocalCargaDescarga[PlayerData[playerid][Descarregamento]][LocZ];
            
SetPlayerCheckpoint(playeridxyz7);
            
TogglePlayerControllable(playerid1);
            
format(UnloadMsg100"Возьмите нагрузку %s в %s."LoadEndLoc);
            
SendClientMessageEx(playeridCOLOR_CLIENTUnloadMsg);
        }
        case 
2:
        {
            new 
StartLoc[50], EndLoc[50], Load[50], Name[24];
            
GetPlayerName(playeridNamesizeof(Name));
            
format(StartLoc50LocalCargaDescarga[PlayerData[playerid][Carregamento]][NomedoLocal]);
            
format(EndLoc50LocalCargaDescarga[PlayerData[playerid][Descarregamento]][NomedoLocal]);
            
format(Load50ACargas[PlayerData[playerid][CargaID]][LoadName]);
            new 
Float:x1Float:y1Float:x2Float:y2Float:DistanceMessage[128], Payment;
            
x1 LocalCargaDescarga[PlayerData[playerid][Carregamento]][LocX];
            
y1 LocalCargaDescarga[PlayerData[playerid][Carregamento]][LocY];
            
x2 LocalCargaDescarga[PlayerData[playerid][Descarregamento]][LocX];
            
y2 LocalCargaDescarga[PlayerData[playerid][Descarregamento]][LocY];
            
Distance floatsqroot(((x2 x1) * (x2 x1)) + ((y2 y1) * (y2 y1)));
            
Payment floatround((Distance ACargas[PlayerData[playerid][CargaID]][PayPerUnit]), floatround_floor);
            
RewardPlayer(playeridPayment);
            
format(Message128"Вы завершили поставку и выиграли $%i."Payment);
            
PlayerData[playerid][pDentroCaminhao] = 0;
            
SendClientMessageEx(playeridCOLOR_CLIENTMessage);
            
TogglePlayerControllable(playerid1);
            
Caminhoneiro_AcabouTrabalho(playerid);
        }
    }
    return 
1;

предупреждение:

PHP Code:
C:\Users\??????\Desktop\??????\gamemodes\??????(42795) : warning 219local variable "SendClientMessage" shadows a variable at a preceding level
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
1 Warning

Reply
#2

Судя по всему это предупреждение не связано с этим кодом.
Reply
#3

Quote:
Originally Posted by Stepashka
View Post
Судя по всему это предупреждение не связано с этим кодом.
Я не понял
Reply
#4

Найди переменную SendClientMessage (именно переменную, не вызов функции!) и переименуй. В строке 42795.
Reply
#5

Quote:
Originally Posted by RuanPereira
View Post
Кто-то мне помогает

PHP Code:
SendClientMessageEx(playeridCOLOR_CLIENTUnloadMsg); 
100% какой-то говно дефайн спижженый с дно-модов/порталов.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)