2 posts in this topic

Спойлер

new migalki[MAX_VEHICLES];

 

Спойлер

    if(strcmp(cmd,"/mig",true)==0)
	    {
			    if(IsACop(playerid))
			    {
					    format(string, sizeof(string), "На крышу\nНа капот\nНа багажник\nВ машину\nУдалить мигалки");
					    ShowPlayerDialog(playerid,6002,DIALOG_STYLE_LIST,"Куда установить мигалки?",string,"Дальше","Отмена");
			    }
    	}

 

Спойлер

  if(dialogid==6002)
	    {
			    if(response)
			    {
					    if(listitem==0)
					    {
							    migalki[GetPlayerVehicleID(playerid)][0] = CreateObject(18646,0,0,0,0,0,0,100.0);
							    AttachObjectToVehicle(migalki[GetPlayerVehicleID(playerid)][0], GetPlayerVehicleID(playerid), -0.0, -0.2, 0.75, 1.0, 1.0, 1.0);
							    SendClientMessage(playerid, 0xFFFFFFAA, "Вы установили мигалки на крышу");
							    new str[256];
							    format(str, sizeof(str), "[%d]%s установил мигалки на авто ид - %d  ", playerid,sendername,(playerid), GetPlayerVehicleID(playerid));
							    for(new i = 0;i<MAX_PLAYERS;i++)
							    {
									    if(PlayerInfo[i][pAdmin]>0)
									    {
											    SendClientMessage(i,COLOR_YELLOW,str);
									    }
							    }
					    }
					    if(listitem==1)
					    {
							    DestroyObject(migalki[GetPlayerVehicleID(playerid)][0]);
							    DestroyObject(migalki[GetPlayerVehicleID(playerid)][1]);
							    migalki[GetPlayerVehicleID(playerid)][0] = CreateObject(18646,0,0,0,0,0,0,100.0);
							    migalki[GetPlayerVehicleID(playerid)][1] = CreateObject(18646,0,0,0,0,0,0,100.0);
							    AttachObjectToVehicle(migalki[GetPlayerVehicleID(playerid)][0], GetPlayerVehicleID(playerid), -0.4, 2.2, 0.1, 1.0, 1.0, 1.0);
							    AttachObjectToVehicle(migalki[GetPlayerVehicleID(playerid)][1], GetPlayerVehicleID(playerid),  0.4, 2.2, 0.1, 1.0, 1.0, 1.0);
							    SendClientMessage(playerid, 0xFFFFFFAA, "Вы установили мигалки на капот");
							    new str[256];
							    format(str, sizeof(str), "[%d]%s установил мигалки на авто ид - %d  ", playerid,sendername,(playerid), GetPlayerVehicleID(playerid));
							    for(new i = 0;i<MAX_PLAYERS;i++)
							    {
									    if(PlayerInfo[i][pAdmin]>0)
									    {
											    SendClientMessage(i,COLOR_YELLOW,str);
									    }
							    }
					    }
					    if(listitem==2)
					    {
							    DestroyObject(migalki[GetPlayerVehicleID(playerid)][0]);
							    DestroyObject(migalki[GetPlayerVehicleID(playerid)][1]);
							    migalki[GetPlayerVehicleID(playerid)][0] = CreateObject(18646,0,0,0,0,0,0,100.0);
							    migalki[GetPlayerVehicleID(playerid)][1] = CreateObject(18646,0,0,0,0,0,0,100.0);
							    AttachObjectToVehicle(migalki[GetPlayerVehicleID(playerid)][0], GetPlayerVehicleID(playerid), -0.8, -1.8, 0.3, 1.0, 1.0, 1.0);
							    AttachObjectToVehicle(migalki[GetPlayerVehicleID(playerid)][1], GetPlayerVehicleID(playerid),  0.8, -1.8, 0.3, 1.0, 1.0, 1.0);
							    SendClientMessage(playerid, 0xFFFFFFAA, "Вы установили мигалки на багажник");
							    new str[256];
							    format(str, sizeof(str), "[%d]%s установил мигалки на авто ид - %d  ", playerid,sendername,(playerid), GetPlayerVehicleID(playerid));
							    for(new i = 0;i<MAX_PLAYERS;i++)
							    {
									    if(PlayerInfo[i][pAdmin]>0)
									    {
											    SendClientMessage(i,COLOR_YELLOW,str);
									    }
							    }
					    }
					    if(listitem==3)
					    {
							    DestroyObject(migalki[GetPlayerVehicleID(playerid)][0]);
							    DestroyObject(migalki[GetPlayerVehicleID(playerid)][1]);
							    migalki[GetPlayerVehicleID(playerid)][0] = CreateObject(18646,0,0,0,0,0,0,100.0);
							    AttachObjectToVehicle(migalki[GetPlayerVehicleID(playerid)][0], GetPlayerVehicleID(playerid), 0.0, 0.9, 0.3, 1.0, 1.0, 1.0);
							    SendClientMessage(playerid, 0xFFFFFFAA, "Вы установили мигалки в кабину");
							    new str[256];
							    format(str, sizeof(str), "[%d]%s установил мигалки на авто ид - %d  ", playerid,sendername,(playerid), GetPlayerVehicleID(playerid));
							    for(new i = 0;i<MAX_PLAYERS;i++)
							    {
									    if(PlayerInfo[i][pAdmin]>0)
									    {
											    SendClientMessage(i,COLOR_YELLOW,str);
									    }
							    }
					    }
					    if(listitem==4)
					    {
							    DestroyObject(migalki[GetPlayerVehicleID(playerid)][0]);
							    DestroyObject(migalki[GetPlayerVehicleID(playerid)][1]);
							    SendClientMessage(playerid, 0xFFFFFFAA, "Вы Удалили все мигалки");
							    new str[256];
							    format(str, sizeof(str), "[%d]%s удалил мигалки", playerid,sendername,(playerid));
							    for(new i = 0;i<MAX_PLAYERS;i++)
							    {
									    if(PlayerInfo[i][pAdmin]>0)
									    {
											    SendClientMessage(i,COLOR_YELLOW,str);
									    }
							    }
					    }
			    }
			    return 0;
	    }

 

 

Share this post


Link to post
Share on other sites

C:\Users\NEO\Desktop\Äîêóìåíòû\samp037_svr_windows\gamemodes\Untitled.pwn(240) : error 017: undefined symbol "cmd"
C:\Users\NEO\Desktop\Äîêóìåíòû\samp037_svr_windows\gamemodes\Untitled.pwn(242) : error 017: undefined symbol "IsACop"
C:\Users\NEO\Desktop\Äîêóìåíòû\samp037_svr_windows\gamemodes\Untitled.pwn(244) : error 017: undefined symbol "string"
C:\Users\NEO\Desktop\Äîêóìåíòû\samp037_svr_windows\gamemodes\Untitled.pwn(244) : error 017: undefined symbol "string"
C:\Users\NEO\Desktop\Äîêóìåíòû\samp037_svr_windows\gamemodes\Untitled.pwn(244) : error 029: invalid expression, assumed zero
C:\Users\NEO\Desktop\Äîêóìåíòû\samp037_svr_windows\gamemodes\Untitled.pwn(244) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase

 

 

строки 

 

    if(strcmp(cmd,"/mig",true)==0)
        {
                if(IsACop(playerid))
                {
                        format(string, sizeof(string), "Íà êðûøó\nÍà êàïîò\nÍà áàãàæíèê\n ìàøèíó\nÓäàëèòü ìèãàëêè");
                        ShowPlayerDialog(playerid,6002,DIALOG_STYLE_LIST,"Êóäà óñòàíîâèòü ìèãàëêè?",string,"Äàëüøå","Îòìåíà");
                }
        }
    return 0;
}
6 Errors.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0