Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Anyone can fix this for me?

$
0
0
What is happening?

Code:

C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayé.pwn(2079) : warning 202: number of arguments does not match definition
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayé.pwn(2079) : warning 202: number of arguments does not match definition
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayé.pwn(2079) : warning 215: expression has no effect
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayé.pwn(2079) : error 001: expected token: ";", but found "-string-"
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayé.pwn(2079) : warning 215: expression has no effect
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayé.pwn(2079) : warning 215: expression has no effect
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayé.pwn(2079) : error 001: expected token: ";", but found ")"
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayé.pwn(2079) : error 029: invalid expression, assumed zero
C:\Users\Ivor Keizer\Documents\Tropical Island Roleplay\gamemodes\tikibayé.pwn(2079) : fatal error 107: too many error messages on one line

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

Code:

public OnPlayerRequestClass(playerid, classid)
{
        SetPlayerPos(playerid, 12025.1689,-12880.7031,2.2219);
        SetPlayerFacingAngle(playerid, 40.0);
        SetPlayerCameraPos(playerid, 12021.9229,-12875.6885,2.2219);
        SetPlayerCameraLookAt(playerid, 12025.1689,-12880.7031,2.2219);
        return 1;
}

public OnPlayerConnect(playerid)
{        new query[126], pName[MAX_PLAYER_NAME];

        GetPlayerName(playerid, pName, sizeof(pName));

        format(query), sizeof(query)"SELECT  FROM accounts WHERE name = '%s'", pName);
        mysql_query(query);
        mysql_store_result();
       
        if(mysql_num_rows()== 1);
        {
                SendClientMessage(playerid, -1, "That username is already in use!");
                ShowPlayerDialog(playerid, 0, DIALOG_STYLE_IMPUT, "Login", "Please enter your password to login.", "Login", "Cancel");
        }
        else
                SendClientMessage, (playerid, -1, "That username is valid to be registered!");
        return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
        return 1;
}

public OnPlayerSpawn(playerid)
{SendClientMessage(playerid,IntColor, "45 minutes ago: [Cruise Ship Intercom] We are approaching Tikibayé, prepare your luggage and get your children from their activities!");
SendClientMessage(playerid,IntColor, "30 minutes ago: [Cruise Ship Intercom] Make sure to register yourself and your family on the island by using their website: www.tikibaye.tk!");
SendClientMessage(playerid,IntColor, "30 minutes ago: [Cruise Ship Intercom] The law enforcement can give you a ticket for being on the island for longer as a week without registration.");
SendClientMessage(playerid,IntColor, "10 minutes ago: [Cruise Ship Intercom] We have arrived at Tikibayé, enjoy your stay on the island!");
SendClientMessage(playerid,DoColor, "You have arrived on a Tropical Island called Tikibayé.");
        return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
        return 1;
}

public OnVehicleSpawn(vehicleid)
{
        return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
        return 1;
}

public OnPlayerText(playerid, text[])
{
        return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
        if (strcmp("/kill", cmdtext, true, 10) == 0)
        { SetPlayerHealth(playerid, 0);
                return 1;}

        return 0;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
        return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
        return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
        return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
        return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
        return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
        return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
        return 1;
}

public OnRconCommand(cmd[])
{
        return 1;
}

public OnPlayerRequestSpawn(playerid)
{
        return 1;
}

public OnObjectMoved(objectid)
{
        return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
        return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
        return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
        return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
        return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
        return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
        return 1;
}

public OnPlayerExitedMenu(playerid)
{
        return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
        return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
        return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
        return 1;
}

public OnPlayerUpdate(playerid)
{
        return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
        return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
        return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
        return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
        return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{switch(dialogid)
        {case 0:
                {if(response)
                    {
                new query[124], pName[MAX_PLAYER_NAME];
                GetPlayernName(playerid, pName, sizeof(pName));
                format, query sizeof(query), "SELECT * FROM accounts WHERE name = '%s' AND password = '%s'", pName, inputtext);
                mysql_query(query);
                mysql_store_result();
                {
                if(mysql_num_rows() == 1)
                SendClientMessage(playerid, -1 "You have succesfully logged in.");
                SetSpawnInfo(playerid, 1, 299, 1, 2, 3. 1, 1, 1, 999, 1, 999);
                SpawnPlayer(playerid);
                }
                else
                {
                SendClientMessage(playerid, -1) "Incorrect password!");
                        ShowPlayerDialog(playerid, 0, DIALOG_STYLE_IMPUT, "Login", "Please enter your password to login.", "Login", "Cancel");
               
                }
                case 1:
                {
                if (response)
                {
                        new query[126], pName[MAX_PLAYER_NAME];
                        GetPlayerName(playerid, pName, sizeof(pName) );
                        format (query, sizeof(query), "INSERT INTO accounts VALUES('%s', '%s')", pName, imputtext);
                        mysql_query(query);

                        SendCLientMessage(playerid, -1 "You have succesfully registered your account!");
                       
                        SetSpawnInfo(playerid, 1, 299, 1, 2, 3. 1, 1, 1, 999, 1, 999);
                        SpawnPlayer(playerid);
                       
                }
        }
        return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
        return 1;
}


Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>