19.05.2015, 18:22
Help me pls.
22.05.2015, 09:30
Up ? Help me
22.05.2015, 09:32
Do what?
Elaborate.
Elaborate.
22.05.2015, 09:34
No, i want to make numbers on checkpoints, like DMV Checkpoints 1/21 .
22.05.2015, 09:36
- You need to create a textdraw (****** it for a textdraw editor so you can make the design).
- You need to be aware of how many checkpoints this minigame has (stored in a variable).
- You need a variable (array with size of MAX_PLAYERS) and increase it in OnPlayerEnterRaceCheckpoint callback if the player is in that minigame and then format and update the text in the textdraw.
- When the player's variable is equal to max checkpoints for that minigame, end it.
- You need to be aware of how many checkpoints this minigame has (stored in a variable).
- You need a variable (array with size of MAX_PLAYERS) and increase it in OnPlayerEnterRaceCheckpoint callback if the player is in that minigame and then format and update the text in the textdraw.
- When the player's variable is equal to max checkpoints for that minigame, end it.
22.05.2015, 09:37
Oh my God )
An example can you give it to me ? pls. +1 RP !!!
An example can you give it to me ? pls. +1 RP !!!
22.05.2015, 09:57
I'd personally something like this (an example as I don't know anything about your minigame). Also use player-textdraws:
PHP код:
new Player_DMV@CP[MAX_PLAYERS];
// OnPlayerConnect and when the player completes the minigame:
Player_DMV@CP[playerid] = 0;
// Also create the player-textdraws on connect
// when the minigame starts (in case the player is IN the checkpoint):
if (IsPlayerInRaceCheckpoint(playerid)) OnPlayerEnterRaceCheckpoint(playerid);
// OnPlayerEnterRaceCheckpoint:
// have a variable of whether it has started or not if it has countdown and:
if (MINIGAME_HAS_NOT_STARTED_VARIABLE) return 1; // at the top so it won't go to the next checkpoint
// if it doesn't have a countdown, skip it
switch (MAX_CHECKPOINTS_VARIABLE - Player_DMV@CP[playerid])
{
case 1:
{
// player got last checkpoint.. end it for the player
DisablePlayerRaceCheckpoint(playerid);
}
case 2:
{
++Player_DMV@CP[playerid];
SetPlayerRaceCheckpoint(playerid, 1, X_CP_HERE, Y_CP_HERE, Z_CP_HERE, 0.0, 0.0, 0.0, 9.0);
}
default:
{
++Player_DMV@CP[playerid];
SetPlayerRaceCheckpoint(playerid, 0, X_CP_HERE, Y_CP_HERE, Z_CP_HERE, X_CP_NEXT_HERE, Y_CP_NEXT_HERE, Z_CP_NEXT_HERE, 9.0);
}
}
new text[30];
format(text, sizeof (text), "DMV CHECKPOINTS: %i/%i", Player_DMV@CP[playerid], MAX_CHECKPOINTS_VARIABLE);
PlayerTextDrawSetString(playerid, PLAYER_TEXTDRAW_HERE, text);
22.05.2015, 10:40
Error's
Код:
D:\Saints-Network Original -\gamemodes\saints.pwn(6554) : error 017: undefined symbol "MAX_CHECKPOINTS_VARIABLE" D:\Saints-Network Original -\gamemodes\saints.pwn(6564) : error 017: undefined symbol "X_CP_HERE" D:\Saints-Network Original -\gamemodes\saints.pwn(6569) : error 017: undefined symbol "X_CP_HERE" D:\Saints-Network Original -\gamemodes\saints.pwn(6574) : error 017: undefined symbol "MAX_CHECKPOINTS_VARIABLE" D:\Saints-Network Original -\gamemodes\saints.pwn(6575) : error 017: undefined symbol "TextDMV" D:\Saints-Network Original -\gamemodes\saints.pwn(11645) : warning 217: loose indentation D:\Saints-Network Original -\gamemodes\saints.pwn(11645) : error 017: undefined symbol "Textdraw0" D:\Saints-Network Original -\gamemodes\saints.pwn(11646) : error 017: undefined symbol "Textdraw0" D:\Saints-Network Original -\gamemodes\saints.pwn(11647) : error 017: undefined symbol "Textdraw0" D:\Saints-Network Original -\gamemodes\saints.pwn(11648) : error 017: undefined symbol "Textdraw0" D:\Saints-Network Original -\gamemodes\saints.pwn(11649) : error 017: undefined symbol "Textdraw0" D:\Saints-Network Original -\gamemodes\saints.pwn(11650) : error 017: undefined symbol "Textdraw0" D:\Saints-Network Original -\gamemodes\saints.pwn(11651) : error 017: undefined symbol "Textdraw0" D:\Saints-Network Original -\gamemodes\saints.pwn(11652) : error 017: undefined symbol "Textdraw0" D:\Saints-Network Original -\gamemodes\saints.pwn(11654) : warning 217: loose indentation D:\Saints-Network Original -\gamemodes\saints.pwn(11644) : warning 204: symbol is assigned a value that is never used: "TextDMV" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
22.05.2015, 10:44
22.05.2015, 10:58
Can you make a filterscript fir me please ?
« Next Oldest | Next Newest »
Users browsing this thread: 2 Guest(s)