SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 10/04/2020, 07:10 PM   #1
dritmirgashi166
Little Clucker
 
Join Date: Apr 2020
Posts: 6
Reputation: 0
Default Can someone help me maybe with teamviewer :(

Code:
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(3965) : error 017: undefined symbol "mysql_format"
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(3965) : warning 202: number of arguments does not match definition
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(3965) : warning 202: number of arguments does not match definition
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(3965) : warning 202: number of arguments does not match definition
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(3966) : error 017: undefined symbol "mysql_tquery"
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(3977) : error 017: undefined symbol "mysql_format"
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(3977) : warning 202: number of arguments does not match definition
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(3977) : warning 202: number of arguments does not match definition
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(3977) : warning 202: number of arguments does not match definition
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(3978) : error 017: undefined symbol "mysql_tquery"
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(3989) : error 017: undefined symbol "mysql_format"
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(3989) : warning 202: number of arguments does not match definition
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(3989) : warning 202: number of arguments does not match definition
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(3989) : warning 202: number of arguments does not match definition
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(3990) : error 017: undefined symbol "mysql_tquery"
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(4001) : error 017: undefined symbol "mysql_format"
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(4001) : warning 202: number of arguments does not match definition
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(4001) : warning 202: number of arguments does not match definition
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(4001) : warning 202: number of arguments does not match definition
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(4002) : error 017: undefined symbol "mysql_tquery"
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(4013) : error 017: undefined symbol "mysql_format"
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(4013) : warning 202: number of arguments does not match definition
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(4013) : warning 202: number of arguments does not match definition
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(4013) : warning 202: number of arguments does not match definition
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(4014) : error 017: undefined symbol "mysql_tquery"
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(4025) : error 017: undefined symbol "mysql_format"
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(4025) : warning 202: number of arguments does not match definition
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(4025) : warning 202: number of arguments does not match definition
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(4025) : warning 202: number of arguments does not match definition
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(4026) : error 017: undefined symbol "mysql_tquery"
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(4037) : error 017: undefined symbol "mysql_format"
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(4037) : warning 202: number of arguments does not match definition
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(4037) : warning 202: number of arguments does not match definition
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(4037) : warning 202: number of arguments does not match definition
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(4038) : error 017: undefined symbol "mysql_tquery"
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(4049) : error 017: undefined symbol "mysql_format"
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(4049) : warning 202: number of arguments does not match definition
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(4049) : warning 202: number of arguments does not match definition
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(4049) : warning 202: number of arguments does not match definition
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(4050) : error 017: undefined symbol "mysql_tquery"
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(4462) : error 017: undefined symbol "mysql_format"
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(4462) : warning 202: number of arguments does not match definition
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(4462) : warning 202: number of arguments does not match definition
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(4462) : warning 202: number of arguments does not match definition
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(4463) : error 017: undefined symbol "mysql_tquery"
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(4465) : error 017: undefined symbol "mysql_format"
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(4465) : warning 202: number of arguments does not match definition
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(4465) : warning 202: number of arguments does not match definition
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(4465) : warning 202: number of arguments does not match definition
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(4465) : warning 202: number of arguments does not match definition
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(4466) : error 017: undefined symbol "mysql_tquery"
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(4468) : error 017: undefined symbol "foreach"
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(4468) : error 029: invalid expression, assumed zero
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(4468) : error 017: undefined symbol "i"
C:\Users\RS Computers\Desktop\limitless\gamemodes\LLRPDec.pwn(4468) : fatal error 107: too many error messages on one line

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


24 Errors.
dritmirgashi166 is offline   Reply With Quote
Old 10/04/2020, 07:22 PM   #2
dritmirgashi166
Little Clucker
 
Join Date: Apr 2020
Posts: 6
Reputation: 0
Default Re: Can someone help me maybe with teamviewer :(

SOURCE CODE


Code:
HandleContract(playerid, killerid)
{
    if(GetFactionType(killerid) == FACTION_HITMAN && PlayerInfo[killerid][pContractTaken] == playerid)
	{
	    new price = PlayerInfo[playerid][pContracted];

	    SendClientMessageEx(killerid, COLOR_YELLOW, "You have completed your contract on %s and received $%i.", GetPlayerRPName(playerid), price);
	    SendClientMessageEx(playerid, COLOR_YELLOW, "You have been killed by a hitman and lost $%i.", price);

	    GivePlayerCash(playerid, -price);
	    GivePlayerCash(killerid, price);

	    PlayerInfo[killerid][pContractTaken] = INVALID_PLAYER_ID;
	    PlayerInfo[killerid][pCompletedHits]++;
	    PlayerInfo[playerid][pContracted] = 0;
	    PlayerInfo[playerid][pContractBy] = 0;

	    mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET contracted = 0, contractby = 'Nobody' WHERE uid = %i", PlayerInfo[playerid][pID]);
	    mysql_tquery(connectionID, queryBuffer);

	    mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET completedhits = %i WHERE uid = %i", PlayerInfo[killerid][pCompletedHits], PlayerInfo[killerid][pID]);
	    mysql_tquery(connectionID, queryBuffer);

        foreach(new i : Player)
        {
            if(PlayerInfo[i][pContractTaken] == playerid)
            {
                PlayerInfo[i][pContractTaken] = INVALID_PLAYER_ID;
			}
		}

		Log_Write("log_contracts", "%s (uid: %i) successfully completed their hit on %s (uid: %i) for $%i.", GetPlayerRPName(killerid), PlayerInfo[killerid][pID], GetPlayerRPName(playerid), PlayerInfo[playerid][pID], price);
	}
	else if(PlayerInfo[playerid][pContractTaken] == killerid)
	{
	    new price = PlayerInfo[killerid][pContracted];

	    SendClientMessageEx(playerid, COLOR_YELLOW, "You have failed your contract on %s and lost $%i.", GetPlayerRPName(playerid), price);
	    SendClientMessageEx(killerid, COLOR_YELLOW, "You have killed a hitman chasing after you and received $%i. The contract on your head has been removed.", price);

	    GivePlayerCash(playerid, -price);
	    GivePlayerCash(killerid, price);

	    PlayerInfo[playerid][pContractTaken] = INVALID_PLAYER_ID;
	    PlayerInfo[playerid][pFailedHits]++;
	    PlayerInfo[killerid][pContracted] = 0;
	    PlayerInfo[killerid][pContractBy] = 0;

	    mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET contracted = 0, contractby = 'Nobody' WHERE uid = %i", PlayerInfo[killerid][pID]);
	    mysql_tquery(connectionID, queryBuffer);

	    mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET failedhits = %i WHERE uid = %i", PlayerInfo[playerid][pFailedHits], PlayerInfo[playerid][pID]);
	    mysql_tquery(connectionID, queryBuffer);

        foreach(new i : Player)
        {
            if(PlayerInfo[i][pContractTaken] == killerid)
            {
                PlayerInfo[i][pContractTaken] = INVALID_PLAYER_ID;
			}
		}

		Log_Write("log_contracts", "%s (uid: %i) failed their hit on %s (uid: %i) and lost $%i.", GetPlayerRPName(playerid), PlayerInfo[playerid][pID], GetPlayerRPName(killerid), PlayerInfo[killerid][pID], price);
	}
}
dritmirgashi166 is offline   Reply With Quote
Old 10/04/2020, 07:35 PM   #3
Shaheen
Huge Clucker
 
Shaheen's Avatar
 
Join Date: Feb 2016
Location: Qatar
Posts: 221
Reputation: 24
Default Re: Can someone help me maybe with teamviewer :(

Code:
HandleContract(playerid, killerid)
{
    if(GetFactionType(killerid) == FACTION_HITMAN && PlayerInfo[killerid][pContractTaken] == playerid)
    {
	    new price = PlayerInfo[playerid][pContracted];

	    SendClientMessageEx(killerid, COLOR_YELLOW, "You have completed your contract on %s and received $%i.", GetPlayerRPName(playerid), price);
	    SendClientMessageEx(playerid, COLOR_YELLOW, "You have been killed by a hitman and lost $%i.", price);

	    GivePlayerCash(playerid, -price);
	    GivePlayerCash(killerid, price);

	    PlayerInfo[killerid][pContractTaken] = INVALID_PLAYER_ID;
	    PlayerInfo[killerid][pCompletedHits]++;
	    PlayerInfo[playerid][pContracted] = 0;
	    PlayerInfo[playerid][pContractBy] = 0;

	    mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET contracted = 0, contractby = 'Nobody' WHERE uid = %i", PlayerInfo[playerid][pID]);
	    mysql_tquery(connectionID, queryBuffer);

	    mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET completedhits = %i WHERE uid = %i", PlayerInfo[killerid][pCompletedHits], PlayerInfo[killerid][pID]);
	    mysql_tquery(connectionID, queryBuffer);

        foreach(new i : Player)
        {
            if(PlayerInfo[i][pContractTaken] == playerid)
            {
                PlayerInfo[i][pContractTaken] = INVALID_PLAYER_ID;
	    }
       }

		Log_Write("log_contracts", "%s (uid: %i) successfully completed their hit on %s (uid: %i) for $%i.", GetPlayerRPName(killerid), PlayerInfo[killerid][pID], GetPlayerRPName(playerid), PlayerInfo[playerid][pID], price);
	else if(PlayerInfo[playerid][pContractTaken] == killerid)
	{
	    new price = PlayerInfo[killerid][pContracted];

	    SendClientMessageEx(playerid, COLOR_YELLOW, "You have failed your contract on %s and lost $%i.", GetPlayerRPName(playerid), price);
	    SendClientMessageEx(killerid, COLOR_YELLOW, "You have killed a hitman chasing after you and received $%i. The contract on your head has been removed.", price);

	    GivePlayerCash(playerid, -price);
	    GivePlayerCash(killerid, price);

	    PlayerInfo[playerid][pContractTaken] = INVALID_PLAYER_ID;
	    PlayerInfo[playerid][pFailedHits]++;
	    PlayerInfo[killerid][pContracted] = 0;
	    PlayerInfo[killerid][pContractBy] = 0;

	    mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET contracted = 0, contractby = 'Nobody' WHERE uid = %i", PlayerInfo[killerid][pID]);
	    mysql_tquery(connectionID, queryBuffer);

	    mysql_format(connectionID, queryBuffer, sizeof(queryBuffer), "UPDATE users SET failedhits = %i WHERE uid = %i", PlayerInfo[playerid][pFailedHits], PlayerInfo[playerid][pID]);
	    mysql_tquery(connectionID, queryBuffer);

        foreach(new i : Player)
        {
            if(PlayerInfo[i][pContractTaken] == killerid)
            {
                PlayerInfo[i][pContractTaken] = INVALID_PLAYER_ID;

	    }
         }

		Log_Write("log_contracts", "%s (uid: %i) failed their hit on %s (uid: %i) and lost $%i.", GetPlayerRPName(playerid), PlayerInfo[playerid][pID], GetPlayerRPName(killerid), PlayerInfo[killerid][pID], price);
	}
    }
}
__________________


Add Me On Discord: Nightmare#6799
Shaheen is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Teamviewer me for FCNPC SteSte Scripting Help 0 08/07/2017 07:55 PM
NPC Problem - Teamviewer Josh_Main Scripting Help 4 15/09/2016 10:12 AM
Can someone please help me (TeamViewer) Ismail_Cift Server Support 2 08/07/2012 06:38 PM
Could SomeOne TeamViewer Me? dannyk0ed Help Archive 1 17/04/2011 02:38 PM


All times are GMT. The time now is 08:21 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.