Can someone help me maybe with teamviewer :(
#1

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 © 1997-2006, ITB CompuPhase


24 Errors.
Reply
#2

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);
	}
}
Reply
#3

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);
	}
    }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)