Peršokti į turinį
Zygisx

Pagalbos uz rep

Recommended Posts



Kažkas ne taip va kaip padariau ir error, kur pazimejau raudona spalva scripte tai ten pridejau tavo ta script

if(!strcmp(cmdtext, "/ant", true,4))

{

if(playerDB[playerid][specialybe]!=1 && playerDB[playerid][specialybe]!=17){SendClientMessage(playerid,RED,"* Ði komanda tik policininkams"); return 1;}

if (Spectating[playerid][0]!=-1){ SendClientMessage(playerid, RED, "* Nera tokios komandos!!!"); return 1;}

if(cmdtext[4]==0){SendClientMessage(playerid,BLUE,"* Uþdeti/nuimti þaidejui antrankius: /ant [vardo_dalis]"); return 1;}

new vardas[MAX_PLAYER_NAME];

strmid(vardas,cmdtext[5],0,MAX_PLAYER_NAME);

new id = GetPlayeridMid(vardas);

if (id == INVALID_PLAYER_ID){ SendClientMessage(playerid, RED, "* Tokio zaidejo nera"); return 1;}

if (id == playerid){ SendClientMessage(playerid, RED, "* Saves surakinti negali!"); return 1;}

new Float:Coo[3];

GetPlayerPos(id,Coo[0],Coo[1],Coo[2]);

if(!PlayerToPoint(3, playerid, Coo[0],Coo[1],Coo[2])){SendClientMessage(playerid, RED, "* Zaidejas per toli, prieikite arciau."); return 1;}

else if(IsPlayerInAnyVehicle(playerid) && !PlayerToPoint(6, playerid, Coo[0],Coo[1],Coo[2])){SendClientMessage(playerid, RED, "* Zaidejas per toli, prieikite arciau."); return 1;}

new msg[128],police[MAX_PLAYER_NAME];

GetPlayerName(playerid,police,sizeof(police));

GetPlayerName(id,vardas,sizeof(vardas));

SetPlayerAttachedObject(playerid,0,19418,5,0.016000,0.032000,0.025000,17.500005,-10.099991,-48.099990,1.000000,1.000000,1.000000);

SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CUFFED);

if(playerDB[id][cuffed])

{

playerDB[id][cuffed]=false;

TogglePlayerControllable(id,true);

format(msg,sizeof(msg),"Paleidote %s.",vardas);

SendClientMessage(playerid,GREEN,msg);

format(msg,sizeof(msg),"Jus paleido %s.",police);

SendClientMessage(id,RED,msg);

}else{

playerDB[id][cuffed]=true;

TogglePlayerControllable(id,false);

format(msg,sizeof(msg),"Surakinote %s.",vardas);

SendClientMessage(playerid,GREEN,msg);

format(msg,sizeof(msg),"Jus surakino %s.",police);

SendClientMessage(id,GREEN,msg);

}

SetPlayerAttachedObject(playerid,0,19418,5,0.016000,0.032000,0.025000,17.500005,-10.099991,-48.099990,1.000000,1.000000,1.000000);

SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CUFFED);

return 1;

}

Va error

C:\Users\Zenka\Desktop\naudojamas GMm\gamemodes\band7.pwn(4358) : error 017: undefined symbol "SPECIAL_ACTION_CUFFED"

C:\Users\Zenka\Desktop\naudojamas GMm\gamemodes\band7.pwn(4383) : error 017: undefined symbol "SPECIAL_ACTION_CUFFED"

C:\Users\Zenka\Desktop\naudojamas GMm\gamemodes\band7.pwn(8530) : error 017: undefined symbol "spec"

Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

3 Errors.

Dalintis šį pranešimą


Nuoroda iki šio pranešimo
Dalintis per kitą puslapį

if(!strcmp(cmdtext, "/ant", true,4))
{
if(playerDB[playerid][specialybe]!=1 && playerDB[playerid][specialybe]!=17){SendClientMessage(playerid,RED,"* Ði komanda tik policininkams"); return 1;}
if (Spectating[playerid][0]!=-1){ SendClientMessage(playerid, RED, "* Nera tokios komandos!!!"); return 1;}
if(cmdtext[4]==0){SendClientMessage(playerid,BLUE,"* Uþdeti/nuimti þaidejui antrankius: /ant [vardo_dalis]"); return 1;}
new vardas[MAX_PLAYER_NAME];
strmid(vardas,cmdtext[5],0,MAX_PLAYER_NAME);
new id = GetPlayeridMid(vardas);
if (id == INVALID_PLAYER_ID){ SendClientMessage(playerid, RED, "* Tokio zaidejo nera"); return 1;}
if (id == playerid){ SendClientMessage(playerid, RED, "* Saves surakinti negali!"); return 1;}
new Float:Coo[3];
GetPlayerPos(id,Coo[0],Coo[1],Coo[2]);
if(!PlayerToPoint(3, playerid, Coo[0],Coo[1],Coo[2])){SendClientMessage(playerid, RED, "* Zaidejas per toli, prieikite arciau."); return 1;}
else if(IsPlayerInAnyVehicle(playerid) && !PlayerToPoint(6, playerid, Coo[0],Coo[1],Coo[2])){SendClientMessage(playerid, RED, "* Zaidejas per toli, prieikite arciau."); return 1;}
new msg[128],police[MAX_PLAYER_NAME];
GetPlayerName(playerid,police,sizeof(police));
GetPlayerName(id,vardas,sizeof(vardas));
SetPlayerAttachedObject(playerid,0,19418,5,0.016000,0.032000,0.025000,17.500005,-10.099991,-48.099990,1.000000,1.000000,1.000000);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CUFFED);


if(playerDB[id][cuffed])
{
playerDB[id][cuffed]=false;
TogglePlayerControllable(id,true);

format(msg,sizeof(msg),"Paleidote %s.",vardas);
SendClientMessage(playerid,GREEN,msg);

format(msg,sizeof(msg),"Jus paleido %s.",police);
SendClientMessage(id,RED,msg);

}else{
playerDB[id][cuffed]=true;
TogglePlayerControllable(id,false);

format(msg,sizeof(msg),"Surakinote %s.",vardas);
SendClientMessage(playerid,GREEN,msg);

SetPlayerAttachedObject(id,0,19418,5,0.016000,0.032000,0.025000,17.500005,-10.099991,-48.099990,1.000000,1.000000,1.000000);
SetPlayerSpecialAction(id, SPECIAL_ACTION_CUFFED);

format(msg,sizeof(msg),"Jus surakino %s.",police);
SendClientMessage(id,GREEN,msg);
}
return 1;
}

Pareadagavau kodą, nes pagal tavę surakintu ne bėglį, o mentą

P.S. Ar tu atsinaujinęs gm į 0.3e versiją?

Dalintis šį pranešimą


Nuoroda iki šio pranešimo
Dalintis per kitą puslapį

C:\Users\Vartotojas\Desktop\GM\RSFG -1.5.7\gamemodes\Sfrg.pwn(4921) : error 017: undefined symbol "Set"
C:\Users\Vartotojas\Desktop\GM\RSFG -1.5.7\gamemodes\Sfrg.pwn(4921) : error 017: undefined symbol "PlayerSpecialAction"
C:\Users\Vartotojas\Desktop\GM\RSFG -1.5.7\gamemodes\Sfrg.pwn(4958) : error 017: undefined symbol "Set"
C:\Users\Vartotojas\Desktop\GM\RSFG -1.5.7\gamemodes\Sfrg.pwn(4958) : error 017: undefined symbol "PlayerSpecialAction"
C:\Users\Vartotojas\Desktop\GM\RSFG -1.5.7\gamemodes\Sfrg.pwn(4970) : error 017: undefined symbol "Set"
C:\Users\Vartotojas\Desktop\GM\RSFG -1.5.7\gamemodes\Sfrg.pwn(4970) : error 017: undefined symbol "PlayerSpecialAction"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


6 Errors.

Padek

Dalintis šį pranešimą


Nuoroda iki šio pranešimo
Dalintis per kitą puslapį



Komentuoti gali tik prisijungę nariai

Jeigu turite paskyrą, prisijunkite

Sukurti paskyrą

Sukurkite paskyrą mūsų forume

Registruotis

Prisijungti

Turite paskyrą? Prisijunkite

Prisijungti dabar

  • Narių peržiūri šį forumą:   0 nariai

    Nėra registruotų narių peržiūrinčių šį forumą.


  • SuperGames programele
  • SuperGames programele


×