Jump to content
  • 0

Gangzone


Skull

Question

6 answers to this question

Recommended Posts

[pawn]public IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy)

{

new Float:x, Float:y, Float:z;

GetPlayerPos(playerid, x, y, z);

if (x > minx && x < maxx && y > miny && y < maxy) return 1;

return 0;

}[/pawn]

[pawn]

//OnPlayerDeath

if(IsPlayerInArea(killerid,mX,MX,mY,MZ))

{

Kick(killerid);

}[/pawn]

Link to comment
Share on other sites

Am luat,am facut TD-ul ,am pus in script ,dar primesc warninguri "tag mismatch" si textdrawul nu functioneaza

Uite textdrawul :

public IsInSafeZone(playerid)
{
	if(IsPlayerInArea(playerid,1436.625, -1764.764, 1550.711, -1587.116)) // Police
    {
    Textdrawgang1 = TextDrawCreate(12.000000, 434.000000, "Mesaj");
    TextDrawBackgroundColor(Textdrawgang1, 255);
    TextDrawFont(Textdrawgang1, 0);
    TextDrawLetterSize(Textdrawgang1, 0.500000, 1.399999);
    TextDrawColor(Textdrawgang1, 16777215);
    TextDrawSetOutline(Textdrawgang1, 0);
    TextDrawSetProportional(Textdrawgang1, 1);
    TextDrawSetShadow(Textdrawgang1, 0);
    }
Unde ar trebui sa pun scriptul? Erorile:
C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\zonek.pwn(52405) : warning 213: tag mismatch
C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\zonek.pwn(52406) : warning 213: tag mismatch
C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\zonek.pwn(52407) : warning 213: tag mismatch
C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\zonek.pwn(52408) : warning 213: tag mismatch
C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\zonek.pwn(52409) : warning 213: tag mismatch
C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\zonek.pwn(52410) : warning 213: tag mismatch
C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\zonek.pwn(52411) : warning 213: tag mismatch
C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\zonek.pwn(52412) : warning 213: tag mismatch
C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\zonek.pwn(54364) : warning 203: symbol is never used: "Textdrawgang2"
C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\zonek.pwn(54364) : warning 203: symbol is never used: "Textdrawgang3"
C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\zonek.pwn(54364) : warning 203: symbol is never used: "Textdrawgang4"
C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\zonek.pwn(54364) : warning 203: symbol is never used: "Textdrawgang5"
C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\zonek.pwn(54364) : warning 203: symbol is never used: "Textdrawgang6"
C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\zonek.pwn(54364) : warning 203: symbol is never used: "Textdrawgang7"
C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\zonek.pwn(54364) : warning 203: symbol is never used: "Textdrawgang8"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase

Header size:          10872 bytes
Code size:          1827472 bytes

warning 203 imi da deoarece celelalte nu sunt complete.

Link to comment
Share on other sites

nu asa...

In primu rand,cred ca ai pus SetTimer(IsInSafeZone,delay,1); desi ai un parameter,incearca asa:

[pawn]

new Text:Textdrawgang1;

//la OnGameModeInit:

SetTimer("IsInSafeZone",1000,1);

    Textdrawgang1 = TextDrawCreate(12.000000, 434.000000, "Mesaj");

    TextDrawBackgroundColor(Textdrawgang1, 255);

    TextDrawFont(Textdrawgang1, 0);

    TextDrawLetterSize(Textdrawgang1, 0.500000, 1.399999);

    TextDrawColor(Textdrawgang1, 16777215);

    TextDrawSetOutline(Textdrawgang1, 0);

    TextDrawSetProportional(Textdrawgang1, 1);

    TextDrawSetShadow(Textdrawgang1, 0);

//inafara oricarei functii

public IsInSafeZone()

{

    for(new playerid;playerid<MAX_PLAYERS;playerid++)

    {

    if(!IsPlayerConnected(playerid))continue;

    if(IsPlayerInArea(playerid,1436.625, -1764.764, 1550.711, -1587.116)) // Police

    {

        TextDrawShowForPlayer(playerid,Textdrawgang1);

    }else

    {

        TextDrawHideForPlayer(playerid, Textdrawgang1);

    }

}

[/pawn]

Link to comment
Share on other sites

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(3022) : error 004: function "GivePlayerCash" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(3051) : error 004: function "GivePlayerCash" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(3087) : error 004: function "SafeResetPlayerWeapons" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(3088) : error 004: function "SafeGivePlayerWeapon" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(3115) : error 004: function "SafeResetPlayerWeapons" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(4056) : error 004: function "ResetPlayerCash" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(4107) : error 004: function "GivePlayerCash" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(4678) : error 004: function "GivePlayerCash" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(4989) : error 004: function "SafeResetPlayerWeapons" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(4990) : error 004: function "SafeGivePlayerWeapon" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(5113) : error 004: function "SafeGivePlayerWeapon" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(5448) : error 004: function "GivePlayerCash" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(5466) : error 004: function "GetPlayerCash" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(5516) : error 004: function "GivePlayerCash" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(5547) : error 004: function "GivePlayerCash" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(5548) : error 004: function "GivePlayerCash" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(5594) : error 004: function "GivePlayerCash" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(5595) : error 004: function "GivePlayerCash" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(5686) : error 004: function "GivePlayerCash" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(5687) : error 004: function "GivePlayerCash" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(5693) : error 004: function "GivePlayerCash" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(5694) : error 004: function "GivePlayerCash" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(5717) : error 004: function "BusrouteEnd" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(5718) : error 004: function "BusrouteEnd" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(5719) : error 004: function "BusrouteEnd" is not implemented

C:\DOCUME~1\OZZ~1\Desktop\samp03\GAMEMO~1\COPYOF~1.PWN(6014) : error 004: function "GivePlayerCash" is not implemented

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

26 Errors.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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.