• Welcome to Vice City Multiplayer.
 

Some bugs

Started by JohnKimble, January 19, 2010, 02:14:39 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JohnKimble

1)

When using the 0.3rz2 client and leaving the game it crashes with an error message on Vista & Windows 7. Then after closing the VC-MP client it starts spamming "access violation" messages, I'm currently using this client as a fix.




2)

I've got this:

#define Command(%1) if(strcmp(cmd, %1, true) ==0)


public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[128], tmp[128], idx;
cmd = strtok(cmdtext, idx);

Command("test")
{
    SendClientMessage(playerid, COLOR_WHITE, "This is a test!");
    return 1;
}

Command("me")
{
    new tString[128];

    tmp = strtok(cmdtext, idx);

     if(!strlen(tmp))
         return SendClientMessage(playerid, COLOR_RED, "You did not supply a message!");

    format(tString, sizeof(tString), "* %s %s",PlayerName(playerid), tmp);
            SendClientMessageToAll(COLOR_PINK, tString);
    return 1;
}

return 1;
}


When typing /c test it outputs "This is a test!" in the color WHITE, after typing /c me (without params) it says "You did not supply a message!" in RED however it also turns "This is a test!" and my custom 'JohnKimble joined the server' message which is gray to RED, see:

Typing /c test:

http://files.uploadffs.com/d/c/5c09cda3/vcmp002.jpg

After typing /c me:

http://files.uploadffs.com/d/9/61e4926a/vcmp003.jpg




3)

I've got this:


public OnGameModeInit()
{
SetGameModeText(SERVER_MODE);

ShowPlayerMarkers(1);

AddPlayerClassEx(1,61,335.570099,-233.904694,29.646601,164.184799,0,0,17,500,21,500);
AddPlayerClassEx(2,56,-540.355713,806.634583,97.510399,222.869095,0,0,17,500,21,500);
AddPlayerClassEx(3,68,-1037.172729,80.577003,11.579200,87.457100,0,0,17,500,21,500);
AddPlayerClassEx(4,27,327.972198,-222.016098,35.881302,157.274796,0,0,17,500,21,500);
AddPlayerClassEx(5,14,-758.352966,-1584.810913,18.566093,332.000000,0,0,17,500,21,500);
AddPlayerClassEx(6,21,-746.899353,-1589.474365,18.566097,342.200012,0,0,18,70,27,360);
AddPlayerClassEx(7,28,-995.121887,185.130905,12.434000,5.948400,0,0,17,500,21,500);
AddPlayerClassEx(8,69,-1013.162109,-858.580383,17.954100,157.357300,0,0,17,500,21,500);
AddPlayerClassEx(9,93,-597.619446,653.861145,11.071777,13.400000,1,1,24,800,19,50);
AddPlayerClassEx(10,94,-539.271362,696.654358,11.084653,247.699997,1,1,24,800,19,50);
AddPlayerClassEx(11,43,80.921997,-1456.618530,11.606800,247.754898,0,0,17,500,21,500);
AddPlayerClassEx(12,57,63.919201,-1450.336914,10.565500,353.467896,0,0,17,500,21,500);
AddPlayerClassEx(13,49,72.817001,-1445.638916,11.312300,53.248798,0,0,17,500,21,500);
AddPlayerClassEx(14,6,-696.673706,941.201782,11.084600,217.990601,0,0,17,500,21,500);

SetCameraPos(-493.191803, 806.907104, 97.510437);
SetCameraLookAt(-493.191803, 806.607104, 97.510437);
SetPlayerStartPos(-493.775269, 800.124634, 97.510437);
return 1;
}


When joining the server it SOMETIMES takes me to the correct position where I put SetCameraPos and, other times it takes me to some random place (see screenshots above), when trying to spawn it doesn't work 80% of the time, when it does work it spawns me but I can not move. Maybe I missed something or maybe this is a Windows 7 bug? I'm not sure.




I'll report more bugs if I find them..

[AoD]NC

Well i suck at pawn but i can answer you question 1. Its a common bug, was in SAMP too but they fixed it. VCMP devs dont have Vista or 7, so they simple cant fix it, but however, VCMP browser = SAMP browser so i dont know why dont ask the SAMP team for a fix.

Use the alternative browser or try Win98 compatibility mode. Or when you want to exit VCMP, simple ctrl alt del or ctrl shift esc and kill vc-mp.exe :).

StriKe

1.Access violation messages exists from 0.3z and dev's still have to fix it
2.Sendclientmessage colour bug has been fixed and wait for the update to be released.
3. Add SetWorldBounds(5000.0,-5000.0,5000.0,-5000.0); to your gamemode.I think you have forget to add that which makes you to move randomly in your map

JohnKimble

#3
Okay thanks :)

Edit:

I had to add:

SetWorldBounds(5000.0,-5000.0,5000.0,-5000.0);
SetWaterLevel(6.0);
SetGamespeed(100);
SetGravity(100);


Under OnGameModeInit, this fixed my problem with not spawning properly, like I said here maybe this should be added standard instead of server owners having to add it themself?  :o